Class CfnInstance

All Implemented Interfaces:
IInspectable, ITaggableV2,, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:59.682Z") @Stability(Stable) public class CfnInstance extends CfnResource implements IInspectable, ITaggableV2
This is a preview release for Amazon Connect . It is subject to change..

Initiates an Amazon Connect instance with all the supported channels enabled. It does not attach any storage, such as Amazon Simple Storage Service (Amazon S3) or Amazon Kinesis.

Amazon Connect enforces a limit on the total number of instances that you can create or delete in 30 days. If you exceed this limit, you will get an error message indicating there has been an excessive number of attempts at creating or deleting instances. You must wait 30 days before you can restart creating and deleting instances in your account.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CfnInstance cfnInstance = CfnInstance.Builder.create(this, "MyCfnInstance")
                 // the properties below are optional
         // the properties below are optional

See Also:
  • Field Details


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

    • CfnInstance

      protected CfnInstance( objRef)
    • CfnInstance

      protected CfnInstance( initializationMode)
    • CfnInstance

      @Stability(Stable) public CfnInstance(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnInstanceProps props)
      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
      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)
      renderProperties in class CfnResource
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the instance.
    • getAttrCreatedTime

      @Stability(Stable) @NotNull public String getAttrCreatedTime()
      When the instance was created.
    • getAttrId

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

      You can find the instanceId in the ARN of the instance.

    • getAttrInstanceStatus

      @Stability(Stable) @NotNull public String getAttrInstanceStatus()
      The state of the instance.
    • getAttrServiceRole

      @Stability(Stable) @NotNull public String getAttrServiceRole()
      The service role of the instance.
    • 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()
      getCfnProperties in class CfnResource
    • getAttributes

      @Stability(Stable) @NotNull public Object getAttributes()
      A toggle for an individual feature at the instance level.
    • setAttributes

      @Stability(Stable) public void setAttributes(@NotNull IResolvable value)
      A toggle for an individual feature at the instance level.
    • setAttributes

      @Stability(Stable) public void setAttributes(@NotNull CfnInstance.AttributesProperty value)
      A toggle for an individual feature at the instance level.
    • getIdentityManagementType

      @Stability(Stable) @NotNull public String getIdentityManagementType()
      The identity management type.
    • setIdentityManagementType

      @Stability(Stable) public void setIdentityManagementType(@NotNull String value)
      The identity management type.
    • getDirectoryId

      @Stability(Stable) @Nullable public String getDirectoryId()
      The identifier for the directory.
    • setDirectoryId

      @Stability(Stable) public void setDirectoryId(@Nullable String value)
      The identifier for the directory.
    • getInstanceAlias

      @Stability(Stable) @Nullable public String getInstanceAlias()
      The alias of instance.
    • setInstanceAlias

      @Stability(Stable) public void setInstanceAlias(@Nullable String value)
      The alias of instance.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      An array of key-value pairs to apply to this resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      An array of key-value pairs to apply to this resource.