Class CfnInstance

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.103.1 (build bef2dea)", date="2024-09-24T10:56:29.714Z") @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.

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.*;
 CfnInstance cfnInstance = CfnInstance.Builder.create(this, "MyCfnInstance")
         .attributes(AttributesProperty.builder()
                 .inboundCalls(false)
                 .outboundCalls(false)
                 // the properties below are optional
                 .autoResolveBestVoices(false)
                 .contactflowLogs(false)
                 .contactLens(false)
                 .earlyMedia(false)
                 .useCustomTtsVoices(false)
                 .build())
         .identityManagementType("identityManagementType")
         // the properties below are optional
         .directoryId("directoryId")
         .instanceAlias("instanceAlias")
         .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

    • CfnInstance

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

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

      @Stability(Stable) public CfnInstance(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnInstanceProps 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.
    • 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()
      Overrides:
      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.