SecuritySettings class
Security settings for a location in Customer Engagement Suite.
> Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources.
To get more information about SecuritySettings, see:
- API documentation
- How-to Guides
- Official Documentation
Example Usage
Ces Security Settings Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const securitySettings = new gcp.ces.SecuritySettings("security_settings", {
location: "us",
endpointControlPolicy: {
enforcementScope: "ALWAYS",
allowedOrigins: [
"https://example.com",
"https://google.com",
],
},
});
import pulumi
import pulumi_gcp as gcp
security_settings = gcp.ces.SecuritySettings("security_settings",
location="us",
endpoint_control_policy={
"enforcement_scope": "ALWAYS",
"allowed_origins": [
"https://example.com",
"https://google.com",
],
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var securitySettings = new Gcp.Ces.SecuritySettings("security_settings", new()
{
Location = "us",
EndpointControlPolicy = new Gcp.Ces.Inputs.SecuritySettingsEndpointControlPolicyArgs
{
EnforcementScope = "ALWAYS",
AllowedOrigins = new[]
{
"https://example.com",
"https://google.com",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/ces"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ces.NewSecuritySettings(ctx, "security_settings", &ces.SecuritySettingsArgs{
Location: pulumi.String("us"),
EndpointControlPolicy: &ces.SecuritySettingsEndpointControlPolicyArgs{
EnforcementScope: pulumi.String("ALWAYS"),
AllowedOrigins: pulumi.StringArray{
pulumi.String("https://example.com"),
pulumi.String("https://google.com"),
},
},
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_ces_securitysettings" "security_settings" {
location = "us"
endpoint_control_policy = {
enforcement_scope = "ALWAYS"
allowed_origins = ["https://example.com", "https://google.com"]
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.ces.SecuritySettings;
import com.pulumi.gcp.ces.SecuritySettingsArgs;
import com.pulumi.gcp.ces.inputs.SecuritySettingsEndpointControlPolicyArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var securitySettings = new SecuritySettings("securitySettings", SecuritySettingsArgs.builder()
.location("us")
.endpointControlPolicy(SecuritySettingsEndpointControlPolicyArgs.builder()
.enforcementScope("ALWAYS")
.allowedOrigins(
"https://example.com",
"https://google.com")
.build())
.build());
}
}
resources:
securitySettings:
type: gcp:ces:SecuritySettings
name: security_settings
properties:
location: us
endpointControlPolicy:
enforcementScope: ALWAYS
allowedOrigins:
- https://example.com
- https://google.com
Import
SecuritySettings can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/securitySettings{{project}}/{{location}}{{location}}
When using the pulumi import command, SecuritySettings can be imported using one of the formats above. For example:
$ pulumi import gcp:ces/securitySettings:SecuritySettings default projects/{{project}}/locations/{{location}}/securitySettings
$ pulumi import gcp:ces/securitySettings:SecuritySettings default {{project}}/{{location}}
$ pulumi import gcp:ces/securitySettings:SecuritySettings default {{location}}
Constructors
- SecuritySettings(String name, {SecuritySettingsArgs? args, CustomResourceOptions? options})
-
Creates a new SecuritySettings.
nameThe Pulumi resource name.argsArguments used to configure this SecuritySettings. The set of arguments for SecuritySettings.optionsResource options controlling this resource's behavior. - SecuritySettings.reference(String urn)
- Creates a typed reference to an existing SecuritySettings resource.
Properties
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
createTime
↔ Output<
String> -
Output only. Timestamp when the security settings were created.
latefinal
-
endpointControlPolicy
↔ Output<
SecuritySettingsEndpointControlPolicy?> -
Optional. Endpoint control related settings.
Structure is documented below.
latefinal
-
etag
↔ Output<
String> -
Output only. Etag of the resource.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
location
↔ Output<
String> -
The location of the security settings.
latefinal
-
name
↔ Output<
String> -
Identifier. The unique identifier of the security settings.
Format: projects/{project}/locations/{location}/securitySettings
latefinal
-
project
↔ Output<
String> -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
updateTime
↔ Output<
String> -
Output only. Timestamp when the security settings were last updated.
latefinal
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {SecuritySettingsState? state, CustomResourceOptions? options}) → SecuritySettings -
Gets an existing SecuritySettings resource's state with the given
nameandid.