CfnInstanceProps Struct
Properties for defining a CfnInstance.
| 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 cfnInstanceProps: connect.CfnInstanceProps = {
attributes: {
inboundCalls: false,
outboundCalls: false,
// the properties below are optional
autoMuteAgentOnHold: false,
autoResolveBestVoices: false,
contactflowLogs: false,
contactLens: false,
earlyMedia: false,
enhancedChatMonitoring: false,
enhancedContactMonitoring: false,
highVolumeOutBound: false,
messageStreaming: false,
multiPartyChatConference: false,
multiPartyConference: false,
useCustomTtsVoices: false,
},
identityManagementType: 'identityManagementType',
// the properties below are optional
directoryId: 'directoryId',
instanceAlias: 'instanceAlias',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import 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_instance_props = connect.CfnInstanceProps(
attributes=connect.CfnInstance.AttributesProperty(
inbound_calls=False,
outbound_calls=False,
# the properties below are optional
auto_mute_agent_on_hold=False,
auto_resolve_best_voices=False,
contactflow_logs=False,
contact_lens=False,
early_media=False,
enhanced_chat_monitoring=False,
enhanced_contact_monitoring=False,
high_volume_out_bound=False,
message_streaming=False,
multi_party_chat_conference=False,
multi_party_conference=False,
use_custom_tts_voices=False
),
identity_management_type="identityManagementType",
# the properties below are optional
directory_id="directoryId",
instance_alias="instanceAlias",
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.*;
CfnInstanceProps cfnInstanceProps = CfnInstanceProps.builder()
.attributes(AttributesProperty.builder()
.inboundCalls(false)
.outboundCalls(false)
// the properties below are optional
.autoMuteAgentOnHold(false)
.autoResolveBestVoices(false)
.contactflowLogs(false)
.contactLens(false)
.earlyMedia(false)
.enhancedChatMonitoring(false)
.enhancedContactMonitoring(false)
.highVolumeOutBound(false)
.messageStreaming(false)
.multiPartyChatConference(false)
.multiPartyConference(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();
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 cfnInstanceProps = new CfnInstanceProps {
Attributes = new AttributesProperty {
InboundCalls = false,
OutboundCalls = false,
// the properties below are optional
AutoMuteAgentOnHold = false,
AutoResolveBestVoices = false,
ContactflowLogs = false,
ContactLens = false,
EarlyMedia = false,
EnhancedChatMonitoring = false,
EnhancedContactMonitoring = false,
HighVolumeOutBound = false,
MessageStreaming = false,
MultiPartyChatConference = false,
MultiPartyConference = false,
UseCustomTtsVoices = false
},
IdentityManagementType = "identityManagementType",
// the properties below are optional
DirectoryId = "directoryId",
InstanceAlias = "instanceAlias",
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"
cfnInstanceProps := &CfnInstanceProps{
Attributes: &AttributesProperty{
InboundCalls: jsii.Boolean(false),
OutboundCalls: jsii.Boolean(false),
// the properties below are optional
AutoMuteAgentOnHold: jsii.Boolean(false),
AutoResolveBestVoices: jsii.Boolean(false),
ContactflowLogs: jsii.Boolean(false),
ContactLens: jsii.Boolean(false),
EarlyMedia: jsii.Boolean(false),
EnhancedChatMonitoring: jsii.Boolean(false),
EnhancedContactMonitoring: jsii.Boolean(false),
HighVolumeOutBound: jsii.Boolean(false),
MessageStreaming: jsii.Boolean(false),
MultiPartyChatConference: jsii.Boolean(false),
MultiPartyConference: jsii.Boolean(false),
UseCustomTtsVoices: jsii.Boolean(false),
},
IdentityManagementType: jsii.String("identityManagementType"),
// the properties below are optional
DirectoryId: jsii.String("directoryId"),
InstanceAlias: jsii.String("instanceAlias"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
attributesIResolvable | CfnInstance.AttributesPropertyattributestyping.Union[IResolvable, AttributesProperty]attributesIResolvableAttributesIResolvableAttributesinterface{} required #A toggle for an individual feature at the instance level.
directoryIdoptionalstringdirectory_idoptionalstrdirectoryIdoptionalStringDirectoryIdoptionalstringDirectoryIdoptional*string #The identifier for the directory.
identityManagementTypestringidentity_management_typestridentityManagementTypeStringIdentityManagementTypestringIdentityManagementType*string required #The identity management type.
instanceAliasoptionalstringinstance_aliasoptionalstrinstanceAliasoptionalStringInstanceAliasoptionalstringInstanceAliasoptional*string #The alias of instance.
InstanceAlias is only required when IdentityManagementType is CONNECT_MANAGED or SAML . InstanceAlias is not required when IdentityManagementType is EXISTING_DIRECTORY .