published on Tuesday, Jun 9, 2026 by Pulumi
published on Tuesday, Jun 9, 2026 by Pulumi
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
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",
],
})
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
})
}
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 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
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"]
}
}
Create SecuritySettings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecuritySettings(name: string, args: SecuritySettingsArgs, opts?: CustomResourceOptions);@overload
def SecuritySettings(resource_name: str,
args: SecuritySettingsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecuritySettings(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
endpoint_control_policy: Optional[SecuritySettingsEndpointControlPolicyArgs] = None,
project: Optional[str] = None)func NewSecuritySettings(ctx *Context, name string, args SecuritySettingsArgs, opts ...ResourceOption) (*SecuritySettings, error)public SecuritySettings(string name, SecuritySettingsArgs args, CustomResourceOptions? opts = null)
public SecuritySettings(String name, SecuritySettingsArgs args)
public SecuritySettings(String name, SecuritySettingsArgs args, CustomResourceOptions options)
type: gcp:ces:SecuritySettings
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcp_ces_securitysettings" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SecuritySettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SecuritySettingsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecuritySettingsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecuritySettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecuritySettingsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var securitySettingsResource = new Gcp.Ces.SecuritySettings("securitySettingsResource", new()
{
Location = "string",
EndpointControlPolicy = new Gcp.Ces.Inputs.SecuritySettingsEndpointControlPolicyArgs
{
AllowedOrigins = new[]
{
"string",
},
EnforcementScope = "string",
},
Project = "string",
});
example, err := ces.NewSecuritySettings(ctx, "securitySettingsResource", &ces.SecuritySettingsArgs{
Location: pulumi.String("string"),
EndpointControlPolicy: &ces.SecuritySettingsEndpointControlPolicyArgs{
AllowedOrigins: pulumi.StringArray{
pulumi.String("string"),
},
EnforcementScope: pulumi.String("string"),
},
Project: pulumi.String("string"),
})
resource "gcp_ces_securitysettings" "securitySettingsResource" {
location = "string"
endpoint_control_policy = {
allowed_origins = ["string"]
enforcement_scope = "string"
}
project = "string"
}
var securitySettingsResource = new SecuritySettings("securitySettingsResource", SecuritySettingsArgs.builder()
.location("string")
.endpointControlPolicy(SecuritySettingsEndpointControlPolicyArgs.builder()
.allowedOrigins("string")
.enforcementScope("string")
.build())
.project("string")
.build());
security_settings_resource = gcp.ces.SecuritySettings("securitySettingsResource",
location="string",
endpoint_control_policy={
"allowed_origins": ["string"],
"enforcement_scope": "string",
},
project="string")
const securitySettingsResource = new gcp.ces.SecuritySettings("securitySettingsResource", {
location: "string",
endpointControlPolicy: {
allowedOrigins: ["string"],
enforcementScope: "string",
},
project: "string",
});
type: gcp:ces:SecuritySettings
properties:
endpointControlPolicy:
allowedOrigins:
- string
enforcementScope: string
location: string
project: string
SecuritySettings Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SecuritySettings resource accepts the following input properties:
- Location string
- The location of the security settings.
- Endpoint
Control SecurityPolicy Settings Endpoint Control Policy - Optional. Endpoint control related settings. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Location string
- The location of the security settings.
- Endpoint
Control SecurityPolicy Settings Endpoint Control Policy Args - Optional. Endpoint control related settings. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- The location of the security settings.
- endpoint_
control_ objectpolicy - Optional. Endpoint control related settings. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- The location of the security settings.
- endpoint
Control SecurityPolicy Settings Endpoint Control Policy - Optional. Endpoint control related settings. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- The location of the security settings.
- endpoint
Control SecurityPolicy Settings Endpoint Control Policy - Optional. Endpoint control related settings. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location str
- The location of the security settings.
- endpoint_
control_ Securitypolicy Settings Endpoint Control Policy Args - Optional. Endpoint control related settings. Structure is documented below.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- The location of the security settings.
- endpoint
Control Property MapPolicy - Optional. Endpoint control related settings. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecuritySettings resource produces the following output properties:
- Create
Time string - Output only. Timestamp when the security settings were created.
- Etag string
- Output only. Etag of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- Update
Time string - Output only. Timestamp when the security settings were last updated.
- Create
Time string - Output only. Timestamp when the security settings were created.
- Etag string
- Output only. Etag of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- Update
Time string - Output only. Timestamp when the security settings were last updated.
- create_
time string - Output only. Timestamp when the security settings were created.
- etag string
- Output only. Etag of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- update_
time string - Output only. Timestamp when the security settings were last updated.
- create
Time String - Output only. Timestamp when the security settings were created.
- etag String
- Output only. Etag of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- update
Time String - Output only. Timestamp when the security settings were last updated.
- create
Time string - Output only. Timestamp when the security settings were created.
- etag string
- Output only. Etag of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- update
Time string - Output only. Timestamp when the security settings were last updated.
- create_
time str - Output only. Timestamp when the security settings were created.
- etag str
- Output only. Etag of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- update_
time str - Output only. Timestamp when the security settings were last updated.
- create
Time String - Output only. Timestamp when the security settings were created.
- etag String
- Output only. Etag of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- update
Time String - Output only. Timestamp when the security settings were last updated.
Look up Existing SecuritySettings Resource
Get an existing SecuritySettings resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SecuritySettingsState, opts?: CustomResourceOptions): SecuritySettings@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
endpoint_control_policy: Optional[SecuritySettingsEndpointControlPolicyArgs] = None,
etag: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
update_time: Optional[str] = None) -> SecuritySettingsfunc GetSecuritySettings(ctx *Context, name string, id IDInput, state *SecuritySettingsState, opts ...ResourceOption) (*SecuritySettings, error)public static SecuritySettings Get(string name, Input<string> id, SecuritySettingsState? state, CustomResourceOptions? opts = null)public static SecuritySettings get(String name, Output<String> id, SecuritySettingsState state, CustomResourceOptions options)resources: _: type: gcp:ces:SecuritySettings get: id: ${id}import {
to = gcp_ces_securitysettings.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - Output only. Timestamp when the security settings were created.
- Endpoint
Control SecurityPolicy Settings Endpoint Control Policy - Optional. Endpoint control related settings. Structure is documented below.
- Etag string
- Output only. Etag of the resource.
- Location string
- The location of the security settings.
- Name string
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Update
Time string - Output only. Timestamp when the security settings were last updated.
- Create
Time string - Output only. Timestamp when the security settings were created.
- Endpoint
Control SecurityPolicy Settings Endpoint Control Policy Args - Optional. Endpoint control related settings. Structure is documented below.
- Etag string
- Output only. Etag of the resource.
- Location string
- The location of the security settings.
- Name string
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Update
Time string - Output only. Timestamp when the security settings were last updated.
- create_
time string - Output only. Timestamp when the security settings were created.
- endpoint_
control_ objectpolicy - Optional. Endpoint control related settings. Structure is documented below.
- etag string
- Output only. Etag of the resource.
- location string
- The location of the security settings.
- name string
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update_
time string - Output only. Timestamp when the security settings were last updated.
- create
Time String - Output only. Timestamp when the security settings were created.
- endpoint
Control SecurityPolicy Settings Endpoint Control Policy - Optional. Endpoint control related settings. Structure is documented below.
- etag String
- Output only. Etag of the resource.
- location String
- The location of the security settings.
- name String
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update
Time String - Output only. Timestamp when the security settings were last updated.
- create
Time string - Output only. Timestamp when the security settings were created.
- endpoint
Control SecurityPolicy Settings Endpoint Control Policy - Optional. Endpoint control related settings. Structure is documented below.
- etag string
- Output only. Etag of the resource.
- location string
- The location of the security settings.
- name string
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update
Time string - Output only. Timestamp when the security settings were last updated.
- create_
time str - Output only. Timestamp when the security settings were created.
- endpoint_
control_ Securitypolicy Settings Endpoint Control Policy Args - Optional. Endpoint control related settings. Structure is documented below.
- etag str
- Output only. Etag of the resource.
- location str
- The location of the security settings.
- name str
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update_
time str - Output only. Timestamp when the security settings were last updated.
- create
Time String - Output only. Timestamp when the security settings were created.
- endpoint
Control Property MapPolicy - Optional. Endpoint control related settings. Structure is documented below.
- etag String
- Output only. Etag of the resource.
- location String
- The location of the security settings.
- name String
- Identifier. The unique identifier of the security settings. Format: projects/{project}/locations/{location}/securitySettings
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update
Time String - Output only. Timestamp when the security settings were last updated.
Supporting Types
SecuritySettingsEndpointControlPolicy, SecuritySettingsEndpointControlPolicyArgs
- Allowed
Origins List<string> - Optional. The allowed HTTP(s) origins that tools in the App are able to directly call.
- Enforcement
Scope string - Optional. The scope in which this policy's allowedOrigins list is enforced.
Possible values are:
ENFORCEMENT_SCOPE_UNSPECIFIED,VPCSC_ONLY,ALWAYS.
- Allowed
Origins []string - Optional. The allowed HTTP(s) origins that tools in the App are able to directly call.
- Enforcement
Scope string - Optional. The scope in which this policy's allowedOrigins list is enforced.
Possible values are:
ENFORCEMENT_SCOPE_UNSPECIFIED,VPCSC_ONLY,ALWAYS.
- allowed_
origins list(string) - Optional. The allowed HTTP(s) origins that tools in the App are able to directly call.
- enforcement_
scope string - Optional. The scope in which this policy's allowedOrigins list is enforced.
Possible values are:
ENFORCEMENT_SCOPE_UNSPECIFIED,VPCSC_ONLY,ALWAYS.
- allowed
Origins List<String> - Optional. The allowed HTTP(s) origins that tools in the App are able to directly call.
- enforcement
Scope String - Optional. The scope in which this policy's allowedOrigins list is enforced.
Possible values are:
ENFORCEMENT_SCOPE_UNSPECIFIED,VPCSC_ONLY,ALWAYS.
- allowed
Origins string[] - Optional. The allowed HTTP(s) origins that tools in the App are able to directly call.
- enforcement
Scope string - Optional. The scope in which this policy's allowedOrigins list is enforced.
Possible values are:
ENFORCEMENT_SCOPE_UNSPECIFIED,VPCSC_ONLY,ALWAYS.
- allowed_
origins Sequence[str] - Optional. The allowed HTTP(s) origins that tools in the App are able to directly call.
- enforcement_
scope str - Optional. The scope in which this policy's allowedOrigins list is enforced.
Possible values are:
ENFORCEMENT_SCOPE_UNSPECIFIED,VPCSC_ONLY,ALWAYS.
- allowed
Origins List<String> - Optional. The allowed HTTP(s) origins that tools in the App are able to directly call.
- enforcement
Scope String - Optional. The scope in which this policy's allowedOrigins list is enforced.
Possible values are:
ENFORCEMENT_SCOPE_UNSPECIFIED,VPCSC_ONLY,ALWAYS.
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}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
published on Tuesday, Jun 9, 2026 by Pulumi