Class CfnSecurityProfile

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:59.728Z") @Stability(Stable) public class CfnSecurityProfile extends CfnResource implements IInspectable, ITaggableV2
Creates a security profile.

Example:

 // 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.*;
 CfnSecurityProfile cfnSecurityProfile = CfnSecurityProfile.Builder.create(this, "MyCfnSecurityProfile")
         .instanceArn("instanceArn")
         .securityProfileName("securityProfileName")
         // the properties below are optional
         .allowedAccessControlHierarchyGroupId("allowedAccessControlHierarchyGroupId")
         .allowedAccessControlTags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .applications(List.of(ApplicationProperty.builder()
                 .applicationPermissions(List.of("applicationPermissions"))
                 .namespace("namespace")
                 .build()))
         .description("description")
         .hierarchyRestrictedResources(List.of("hierarchyRestrictedResources"))
         .permissions(List.of("permissions"))
         .tagRestrictedResources(List.of("tagRestrictedResources"))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnSecurityProfile

      protected CfnSecurityProfile(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnSecurityProfile

      protected CfnSecurityProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnSecurityProfile

      @Stability(Stable) public CfnSecurityProfile(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSecurityProfileProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrLastModifiedRegion

      @Stability(Stable) @NotNull public String getAttrLastModifiedRegion()
      The AWS Region where this resource was last modified.
    • getAttrLastModifiedTime

      @Stability(Stable) @NotNull public IResolvable getAttrLastModifiedTime()
      The timestamp when this resource was last modified.
    • getAttrSecurityProfileArn

      @Stability(Stable) @NotNull public String getAttrSecurityProfileArn()
      The Amazon Resource Name (ARN) of the security profile.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getInstanceArn

      @Stability(Stable) @NotNull public String getInstanceArn()
      The identifier of the Amazon Connect instance.
    • setInstanceArn

      @Stability(Stable) public void setInstanceArn(@NotNull String value)
      The identifier of the Amazon Connect instance.
    • getSecurityProfileName

      @Stability(Stable) @NotNull public String getSecurityProfileName()
      The name for the security profile.
    • setSecurityProfileName

      @Stability(Stable) public void setSecurityProfileName(@NotNull String value)
      The name for the security profile.
    • getAllowedAccessControlHierarchyGroupId

      @Stability(Stable) @Nullable public String getAllowedAccessControlHierarchyGroupId()
      The identifier of the hierarchy group that a security profile uses to restrict access to resources in Amazon Connect.
    • setAllowedAccessControlHierarchyGroupId

      @Stability(Stable) public void setAllowedAccessControlHierarchyGroupId(@Nullable String value)
      The identifier of the hierarchy group that a security profile uses to restrict access to resources in Amazon Connect.
    • getAllowedAccessControlTags

      @Stability(Stable) @Nullable public Object getAllowedAccessControlTags()
      The list of tags that a security profile uses to restrict access to resources in Amazon Connect.
    • setAllowedAccessControlTags

      @Stability(Stable) public void setAllowedAccessControlTags(@Nullable IResolvable value)
      The list of tags that a security profile uses to restrict access to resources in Amazon Connect.
    • setAllowedAccessControlTags

      @Stability(Stable) public void setAllowedAccessControlTags(@Nullable List<Object> value)
      The list of tags that a security profile uses to restrict access to resources in Amazon Connect.
    • getApplications

      @Stability(Stable) @Nullable public Object getApplications()
      A list of third-party applications that the security profile will give access to.
    • setApplications

      @Stability(Stable) public void setApplications(@Nullable IResolvable value)
      A list of third-party applications that the security profile will give access to.
    • setApplications

      @Stability(Stable) public void setApplications(@Nullable List<Object> value)
      A list of third-party applications that the security profile will give access to.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the security profile.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the security profile.
    • getHierarchyRestrictedResources

      @Stability(Stable) @Nullable public List<String> getHierarchyRestrictedResources()
      The list of resources that a security profile applies hierarchy restrictions to in Amazon Connect.
    • setHierarchyRestrictedResources

      @Stability(Stable) public void setHierarchyRestrictedResources(@Nullable List<String> value)
      The list of resources that a security profile applies hierarchy restrictions to in Amazon Connect.
    • getPermissions

      @Stability(Stable) @Nullable public List<String> getPermissions()
      Permissions assigned to the security profile.
    • setPermissions

      @Stability(Stable) public void setPermissions(@Nullable List<String> value)
      Permissions assigned to the security profile.
    • getTagRestrictedResources

      @Stability(Stable) @Nullable public List<String> getTagRestrictedResources()
      The list of resources that a security profile applies tag restrictions to in Amazon Connect.
    • setTagRestrictedResources

      @Stability(Stable) public void setTagRestrictedResources(@Nullable List<String> value)
      The list of resources that a security profile applies tag restrictions to in Amazon Connect.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags used to organize, track, or control access for this resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags used to organize, track, or control access for this resource.