CfnSecurityProfileProps
Struct External
Properties for defining a CfnSecurityProfile.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const cfnSecurityProfileProps: connect.CfnSecurityProfileProps = {
instanceArn: 'instanceArn',
securityProfileName: 'securityProfileName',
// the properties below are optional
allowedAccessControlHierarchyGroupId: 'allowedAccessControlHierarchyGroupId',
allowedAccessControlTags: [{
key: 'key',
value: 'value',
}],
allowedFlowModules: [{
flowModuleId: 'flowModuleId',
type: 'type',
}],
applications: [{
applicationPermissions: ['applicationPermissions'],
namespace: 'namespace',
type: 'type',
}],
description: 'description',
granularAccessControlConfiguration: {
dataTableAccessControlConfiguration: {
primaryAttributeAccessControlConfiguration: {
primaryAttributeValues: [{
accessType: 'accessType',
attributeName: 'attributeName',
values: ['values'],
}],
},
},
},
hierarchyRestrictedResources: ['hierarchyRestrictedResources'],
permissions: ['permissions'],
tagRestrictedResources: ['tagRestrictedResources'],
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag, CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_connect as connect
cfn_security_profile_props = connect.CfnSecurityProfileProps(
instance_arn="instanceArn",
security_profile_name="securityProfileName",
# the properties below are optional
allowed_access_control_hierarchy_group_id="allowedAccessControlHierarchyGroupId",
allowed_access_control_tags=[CfnTag(
key="key",
value="value"
)],
allowed_flow_modules=[connect.CfnSecurityProfile.FlowModuleProperty(
flow_module_id="flowModuleId",
type="type"
)],
applications=[connect.CfnSecurityProfile.ApplicationProperty(
application_permissions=["applicationPermissions"],
namespace="namespace",
type="type"
)],
description="description",
granular_access_control_configuration=connect.CfnSecurityProfile.GranularAccessControlConfigurationProperty(
data_table_access_control_configuration=connect.CfnSecurityProfile.DataTableAccessControlConfigurationProperty(
primary_attribute_access_control_configuration=connect.CfnSecurityProfile.PrimaryAttributeAccessControlConfigurationItemProperty(
primary_attribute_values=[connect.CfnSecurityProfile.PrimaryAttributeValueProperty(
access_type="accessType",
attribute_name="attributeName",
values=["values"]
)]
)
)
),
hierarchy_restricted_resources=["hierarchyRestrictedResources"],
permissions=["permissions"],
tag_restricted_resources=["tagRestrictedResources"],
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.connect.*;
CfnSecurityProfileProps cfnSecurityProfileProps = CfnSecurityProfileProps.builder()
.instanceArn("instanceArn")
.securityProfileName("securityProfileName")
// the properties below are optional
.allowedAccessControlHierarchyGroupId("allowedAccessControlHierarchyGroupId")
.allowedAccessControlTags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.allowedFlowModules(List.of(FlowModuleProperty.builder()
.flowModuleId("flowModuleId")
.type("type")
.build()))
.applications(List.of(ApplicationProperty.builder()
.applicationPermissions(List.of("applicationPermissions"))
.namespace("namespace")
.type("type")
.build()))
.description("description")
.granularAccessControlConfiguration(GranularAccessControlConfigurationProperty.builder()
.dataTableAccessControlConfiguration(DataTableAccessControlConfigurationProperty.builder()
.primaryAttributeAccessControlConfiguration(PrimaryAttributeAccessControlConfigurationItemProperty.builder()
.primaryAttributeValues(List.of(PrimaryAttributeValueProperty.builder()
.accessType("accessType")
.attributeName("attributeName")
.values(List.of("values"))
.build()))
.build())
.build())
.build())
.hierarchyRestrictedResources(List.of("hierarchyRestrictedResources"))
.permissions(List.of("permissions"))
.tagRestrictedResources(List.of("tagRestrictedResources"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Connect;
var cfnSecurityProfileProps = new CfnSecurityProfileProps {
InstanceArn = "instanceArn",
SecurityProfileName = "securityProfileName",
// the properties below are optional
AllowedAccessControlHierarchyGroupId = "allowedAccessControlHierarchyGroupId",
AllowedAccessControlTags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
AllowedFlowModules = new [] { new FlowModuleProperty {
FlowModuleId = "flowModuleId",
Type = "type"
} },
Applications = new [] { new ApplicationProperty {
ApplicationPermissions = new [] { "applicationPermissions" },
Namespace = "namespace",
Type = "type"
} },
Description = "description",
GranularAccessControlConfiguration = new GranularAccessControlConfigurationProperty {
DataTableAccessControlConfiguration = new DataTableAccessControlConfigurationProperty {
PrimaryAttributeAccessControlConfiguration = new PrimaryAttributeAccessControlConfigurationItemProperty {
PrimaryAttributeValues = new [] { new PrimaryAttributeValueProperty {
AccessType = "accessType",
AttributeName = "attributeName",
Values = new [] { "values" }
} }
}
}
},
HierarchyRestrictedResources = new [] { "hierarchyRestrictedResources" },
Permissions = new [] { "permissions" },
TagRestrictedResources = new [] { "tagRestrictedResources" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnSecurityProfileProps := &CfnSecurityProfileProps{
InstanceArn: jsii.String("instanceArn"),
SecurityProfileName: jsii.String("securityProfileName"),
// the properties below are optional
AllowedAccessControlHierarchyGroupId: jsii.String("allowedAccessControlHierarchyGroupId"),
AllowedAccessControlTags: []interface{}{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
AllowedFlowModules: []interface{}{
&FlowModuleProperty{
FlowModuleId: jsii.String("flowModuleId"),
Type: jsii.String("type"),
},
},
Applications: []interface{}{
&ApplicationProperty{
ApplicationPermissions: []*string{
jsii.String("applicationPermissions"),
},
Namespace: jsii.String("namespace"),
Type: jsii.String("type"),
},
},
Description: jsii.String("description"),
GranularAccessControlConfiguration: &GranularAccessControlConfigurationProperty{
DataTableAccessControlConfiguration: &DataTableAccessControlConfigurationProperty{
PrimaryAttributeAccessControlConfiguration: &PrimaryAttributeAccessControlConfigurationItemProperty{
PrimaryAttributeValues: []interface{}{
&PrimaryAttributeValueProperty{
AccessType: jsii.String("accessType"),
AttributeName: jsii.String("attributeName"),
Values: []*string{
jsii.String("values"),
},
},
},
},
},
},
HierarchyRestrictedResources: []*string{
jsii.String("hierarchyRestrictedResources"),
},
Permissions: []*string{
jsii.String("permissions"),
},
TagRestrictedResources: []*string{
jsii.String("tagRestrictedResources"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
allowedAccessControlHierarchyGroupIdoptionalstringallowed_access_control_hierarchy_group_idoptionalstrallowedAccessControlHierarchyGroupIdoptionalStringAllowedAccessControlHierarchyGroupIdoptionalstringAllowedAccessControlHierarchyGroupIdoptional*string #The identifier of the hierarchy group that a security profile uses to restrict access to resources in Amazon Connect.
allowedAccessControlTagsoptionalIResolvable | IResolvable | CfnTag[]allowed_access_control_tagsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CfnTag]]]allowedAccessControlTagsoptionalIResolvableAllowedAccessControlTagsoptionalIResolvableAllowedAccessControlTagsoptionalinterface{} #The list of tags that a security profile uses to restrict access to resources in Amazon Connect.
allowedFlowModulesoptionalIResolvable | IResolvable | CfnSecurityProfile.allowed_flow_modulesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FlowModuleProperty]]]allowedFlowModulesoptionalIResolvableAllowedFlowModulesoptionalIResolvableAllowedFlowModulesoptionalinterface{} #The list of flow-module resources to be linked to a security profile in Amazon Connect.
applicationsoptionalIResolvable | IResolvable | CfnSecurityProfile.applicationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ApplicationProperty]]]applicationsoptionalIResolvableApplicationsoptionalIResolvableApplicationsoptionalinterface{} #A list of third-party applications that the security profile will give access to.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the security profile.
granularAccessControlConfigurationoptionalIResolvable | CfnSecurityProfile.granular_access_control_configurationoptionaltyping.Union[IResolvable, GranularAccessControlConfigurationProperty]granularAccessControlConfigurationoptionalIResolvableGranularAccessControlConfigurationoptionalIResolvableGranularAccessControlConfigurationoptionalinterface{} #The granular access control configuration for the security profile, including data table permissions.
hierarchyRestrictedResourcesoptionalstring[]hierarchy_restricted_resourcesoptionaltyping.List[str]hierarchyRestrictedResourcesoptionalList<String>HierarchyRestrictedResourcesoptionalstring[]HierarchyRestrictedResourcesoptional*[]*string #The list of resources that a security profile applies hierarchy restrictions to in Amazon Connect.
Following are acceptable ResourceNames: User .
instanceArnstring | IInstanceRefinstance_arntyping.Union[str, IInstanceRef]instanceArnStringInstanceArnstringInstanceArninterface{} required #The identifier of the Connect Customer instance.
permissionsoptionalstring[]permissionsoptionaltyping.List[str]permissionsoptionalList<String>Permissionsoptionalstring[]Permissionsoptional*[]*string #Permissions assigned to the security profile.
For a list of valid permissions, see List of security profile permissions .
securityProfileNamestringsecurity_profile_namestrsecurityProfileNameStringSecurityProfileNamestringSecurityProfileName*string required #The name for the security profile.
tagRestrictedResourcesoptionalstring[]tag_restricted_resourcesoptionaltyping.List[str]tagRestrictedResourcesoptionalList<String>TagRestrictedResourcesoptionalstring[]TagRestrictedResourcesoptional*[]*string #The list of resources that a security profile applies tag restrictions to in Amazon Connect.