# CfnSecurityProfileProps

Struct · External

Properties for defining a `CfnSecurityProfile`.

Used as props by: [CfnSecurityProfile](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnSecurityProfile.html)

- Source: Generated at build time
- Type last changed: v2.242.0 · 10 Mar 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `allowedAccessControlHierarchyGroupId`: string — The identifier of the hierarchy group that a security profile uses to restrict access to resources in Amazon Connect.

- `allowedAccessControlTags`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The list of tags that a security profile uses to restrict access to resources in Amazon Connect.

- `allowedFlowModules`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSecurityProfile.FlowModuleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnSecurityProfile.FlowModuleProperty.html)[] — The list of flow-module resources to be linked to a security profile in Amazon Connect.

- `applications`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSecurityProfile.ApplicationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnSecurityProfile.ApplicationProperty.html)[] — A list of third-party applications that the security profile will give access to.

- `description`: string — The description of the security profile.

- `granularAccessControlConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSecurityProfile.GranularAccessControlConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnSecurityProfile.GranularAccessControlConfigurationProperty.html) — The granular access control configuration for the security profile, including data table permissions.

- `hierarchyRestrictedResources`: string[] — The list of resources that a security profile applies hierarchy restrictions to in Amazon Connect.

  Following are acceptable ResourceNames: `User` .

- `instanceArn`: string | [IInstanceRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_connect.IInstanceRef.html) (required) — The identifier of the Connect Customer instance.

- `permissions`: string[] — Permissions assigned to the security profile.

  For a list of valid permissions, see [List of security profile permissions](https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-list.html) .

- `securityProfileName`: string (required) — The name for the security profile.

- `tagRestrictedResources`: string[] — The list of resources that a security profile applies tag restrictions to in Amazon Connect.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags used to organize, track, or control access for this resource.

  For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
