@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.335Z") @Stability(value=Stable) public class CfnContact extends CfnResource implements IInspectable
The AWS::SSMContacts::Contact resource specifies a contact or escalation plan. Incident Manager contacts are a subset of actions and data types that you can use for managing responder engagement and interaction.
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.ssmcontacts.*;
CfnContact cfnContact = CfnContact.Builder.create(this, "MyCfnContact")
.alias("alias")
.displayName("displayName")
.plan(List.of(StageProperty.builder()
.durationInMinutes(123)
// the properties below are optional
.targets(List.of(TargetsProperty.builder()
.channelTargetInfo(ChannelTargetInfoProperty.builder()
.channelId("channelId")
.retryIntervalInMinutes(123)
.build())
.contactTargetInfo(ContactTargetInfoProperty.builder()
.contactId("contactId")
.isEssential(false)
.build())
.build()))
.build()))
.type("type")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnContact.Builder
A fluent builder for
CfnContact. |
static interface |
CfnContact.ChannelTargetInfoProperty
Information about the contact channel that Incident Manager uses to engage the contact.
|
static interface |
CfnContact.ContactTargetInfoProperty
The contact that Incident Manager is engaging during an incident.
|
static interface |
CfnContact.StageProperty
The `Stage` property type specifies a set amount of time that an escalation plan or engagement plan engages the specified contacts or contact methods.
|
static interface |
CfnContact.TargetsProperty
The contact or contact channel that's being engaged.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnContact(software.constructs.Construct scope,
String id,
CfnContactProps props)
Create a new `AWS::SSMContacts::Contact`.
|
protected |
CfnContact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnContact(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlias()
The unique and identifiable alias of the contact or escalation plan.
|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the `Contact` resource, such as `arn:aws:ssm-contacts:us-west-2:123456789012:contact/contactalias` .
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDisplayName()
The full name of the contact or escalation plan.
|
Object |
getPlan()
A list of stages.
|
String |
getType()
Refers to the type of contact.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAlias(String value)
The unique and identifiable alias of the contact or escalation plan.
|
void |
setDisplayName(String value)
The full name of the contact or escalation plan.
|
void |
setPlan(IResolvable value)
A list of stages.
|
void |
setPlan(List<Object> value)
A list of stages.
|
void |
setType(String value)
Refers to the type of contact.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnContact(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnContact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnContact(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnContactProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getAlias()
@Stability(value=Stable)
public void setAlias(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getDisplayName()
@Stability(value=Stable)
public void setDisplayName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getPlan()
A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts.
@Stability(value=Stable)
public void setPlan(@NotNull
IResolvable value)
A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts.
@Stability(value=Stable)
public void setPlan(@NotNull
List<Object> value)
A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts.
@Stability(value=Stable) @NotNull public String getType()
A single contact is type PERSONAL and an escalation plan is type ESCALATION .
@Stability(value=Stable)
public void setType(@NotNull
String value)
A single contact is type PERSONAL and an escalation plan is type ESCALATION .
Copyright © 2022. All rights reserved.