@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:40.216Z") public class CfnAccountAlias extends CfnResource implements IInspectable
You can use the AWS::SupportApp::AccountAlias
resource to specify your AWS account when you configure the AWS Support App in Slack. Your alias name appears on the AWS Support App page in the Support Center Console and in messages from the AWS Support App. You can use this alias to identify the account you've configured with the AWS Support App .
For more information, see AWS Support App in Slack in the AWS Support User Guide .
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.supportapp.*; CfnAccountAlias cfnAccountAlias = CfnAccountAlias.Builder.create(this, "MyCfnAccountAlias") .accountAlias("accountAlias") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnAccountAlias.Builder
A fluent builder for
CfnAccountAlias . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnAccountAlias(Construct scope,
java.lang.String id,
CfnAccountAliasProps props)
Create a new `AWS::SupportApp::AccountAlias`.
|
protected |
CfnAccountAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAccountAlias(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccountAlias()
An alias or short name for an AWS account .
|
java.lang.String |
getAttrAccountAliasResourceId()
The `AccountAlias` resource type has an attribute `AccountAliasResourceId` .
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAccountAlias(java.lang.String value)
An alias or short name for an AWS account .
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnAccountAlias(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAccountAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnAccountAlias(Construct scope, java.lang.String id, CfnAccountAliasProps 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrAccountAliasResourceId()
The AccountAliasResourceId
will be AccountAlias_for_accountId
. In this example, AccountAlias_for_
is the prefix and accountId
is your AWS account number, such as AccountAlias_for_123456789012
.
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getAccountAlias()
public void setAccountAlias(java.lang.String value)