@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T09:30:44.500Z") @Stability(value=Stable) public class CfnTypeActivation extends CfnResource implements IInspectable
Activates a public third-party extension, making it available for use in stack templates. For more information, see Using public extensions in the AWS CloudFormation User Guide .
Once you have activated a public third-party extension in your account and region, use SetTypeConfiguration to specify configuration properties for the extension. For more information, see Configuring extensions at the account level in the CloudFormation 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.*; CfnTypeActivation cfnTypeActivation = CfnTypeActivation.Builder.create(this, "MyCfnTypeActivation") .autoUpdate(false) .executionRoleArn("executionRoleArn") .loggingConfig(LoggingConfigProperty.builder() .logGroupName("logGroupName") .logRoleArn("logRoleArn") .build()) .majorVersion("majorVersion") .publicTypeArn("publicTypeArn") .publisherId("publisherId") .type("type") .typeName("typeName") .typeNameAlias("typeNameAlias") .versionBump("versionBump") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnTypeActivation.Builder
A fluent builder for
CfnTypeActivation . |
static interface |
CfnTypeActivation.LoggingConfigProperty
Contains logging configuration information for an extension.
|
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.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 |
---|---|
|
CfnTypeActivation(software.constructs.Construct scope,
String id)
Create a new `AWS::CloudFormation::TypeActivation`.
|
|
CfnTypeActivation(software.constructs.Construct scope,
String id,
CfnTypeActivationProps props)
Create a new `AWS::CloudFormation::TypeActivation`.
|
protected |
CfnTypeActivation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnTypeActivation(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
String |
getAttrArn()
The Amazon Resource Number (ARN) of the activated extension, in this account and Region.
|
Object |
getAutoUpdate()
Whether to automatically update the extension in this account and region when a new *minor* version is published by the extension publisher.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getExecutionRoleArn()
The name of the IAM execution role to use to activate the extension.
|
Object |
getLoggingConfig()
Specifies logging configuration information for an extension.
|
String |
getMajorVersion()
The major version of this extension you want to activate, if multiple major versions are available.
|
String |
getPublicTypeArn()
The Amazon Resource Number (ARN) of the public extension.
|
String |
getPublisherId()
The ID of the extension publisher.
|
String |
getType()
The extension type.
|
String |
getTypeName()
The name of the extension.
|
String |
getTypeNameAlias()
An alias to assign to the public extension, in this account and region.
|
String |
getVersionBump()
Manually updates a previously-activated type to a new major or minor version, if available.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAutoUpdate(Boolean value)
Whether to automatically update the extension in this account and region when a new *minor* version is published by the extension publisher.
|
void |
setAutoUpdate(IResolvable value)
Whether to automatically update the extension in this account and region when a new *minor* version is published by the extension publisher.
|
void |
setExecutionRoleArn(String value)
The name of the IAM execution role to use to activate the extension.
|
void |
setLoggingConfig(CfnTypeActivation.LoggingConfigProperty value)
Specifies logging configuration information for an extension.
|
void |
setLoggingConfig(IResolvable value)
Specifies logging configuration information for an extension.
|
void |
setMajorVersion(String value)
The major version of this extension you want to activate, if multiple major versions are available.
|
void |
setPublicTypeArn(String value)
The Amazon Resource Number (ARN) of the public extension.
|
void |
setPublisherId(String value)
The ID of the extension publisher.
|
void |
setType(String value)
The extension type.
|
void |
setTypeName(String value)
The name of the extension.
|
void |
setTypeNameAlias(String value)
An alias to assign to the public extension, in this account and region.
|
void |
setVersionBump(String value)
Manually updates a previously-activated type to a new major or minor version, if available.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnTypeActivation(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnTypeActivation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnTypeActivation(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnTypeActivationProps 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.@Stability(value=Stable) public CfnTypeActivation(@NotNull software.constructs.Construct scope, @NotNull String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.@Stability(value=Stable) public void inspect(@NotNull TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - 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 CfnResource
props
- 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) @Nullable public Object getAutoUpdate()
Major versions released by the publisher must be manually updated.
The default is true
.
@Stability(value=Stable) public void setAutoUpdate(@Nullable Boolean value)
Major versions released by the publisher must be manually updated.
The default is true
.
@Stability(value=Stable) public void setAutoUpdate(@Nullable IResolvable value)
Major versions released by the publisher must be manually updated.
The default is true
.
@Stability(value=Stable) @Nullable public String getExecutionRoleArn()
@Stability(value=Stable) public void setExecutionRoleArn(@Nullable String value)
@Stability(value=Stable) @Nullable public Object getLoggingConfig()
@Stability(value=Stable) public void setLoggingConfig(@Nullable IResolvable value)
@Stability(value=Stable) public void setLoggingConfig(@Nullable CfnTypeActivation.LoggingConfigProperty value)
@Stability(value=Stable) @Nullable public String getMajorVersion()
The default is the latest major version. CloudFormation uses the latest available minor version of the major version selected.
You can specify MajorVersion
or VersionBump
, but not both.
@Stability(value=Stable) public void setMajorVersion(@Nullable String value)
The default is the latest major version. CloudFormation uses the latest available minor version of the major version selected.
You can specify MajorVersion
or VersionBump
, but not both.
@Stability(value=Stable) @Nullable public String getPublicTypeArn()
Conditional: You must specify PublicTypeArn
, or TypeName
, Type
, and PublisherId
.
@Stability(value=Stable) public void setPublicTypeArn(@Nullable String value)
Conditional: You must specify PublicTypeArn
, or TypeName
, Type
, and PublisherId
.
@Stability(value=Stable) @Nullable public String getPublisherId()
Conditional: You must specify PublicTypeArn
, or TypeName
, Type
, and PublisherId
.
@Stability(value=Stable) public void setPublisherId(@Nullable String value)
Conditional: You must specify PublicTypeArn
, or TypeName
, Type
, and PublisherId
.
@Stability(value=Stable) @Nullable public String getType()
Conditional: You must specify PublicTypeArn
, or TypeName
, Type
, and PublisherId
.
@Stability(value=Stable) public void setType(@Nullable String value)
Conditional: You must specify PublicTypeArn
, or TypeName
, Type
, and PublisherId
.
@Stability(value=Stable) @Nullable public String getTypeName()
Conditional: You must specify PublicTypeArn
, or TypeName
, Type
, and PublisherId
.
@Stability(value=Stable) public void setTypeName(@Nullable String value)
Conditional: You must specify PublicTypeArn
, or TypeName
, Type
, and PublisherId
.
@Stability(value=Stable) @Nullable public String getTypeNameAlias()
If you specify an alias for the extension, CloudFormation treats the alias as the extension type name within this account and region. You must use the alias to refer to the extension in your templates, API calls, and CloudFormation console.
An extension alias must be unique within a given account and region. You can activate the same public resource multiple times in the same account and region, using different type name aliases.
@Stability(value=Stable) public void setTypeNameAlias(@Nullable String value)
If you specify an alias for the extension, CloudFormation treats the alias as the extension type name within this account and region. You must use the alias to refer to the extension in your templates, API calls, and CloudFormation console.
An extension alias must be unique within a given account and region. You can activate the same public resource multiple times in the same account and region, using different type name aliases.
@Stability(value=Stable) @Nullable public String getVersionBump()
You can also use this parameter to update the value of AutoUpdate
.
MAJOR
: CloudFormation updates the extension to the newest major version, if one is available.MINOR
: CloudFormation updates the extension to the newest minor version, if one is available.@Stability(value=Stable) public void setVersionBump(@Nullable String value)
You can also use this parameter to update the value of AutoUpdate
.
MAJOR
: CloudFormation updates the extension to the newest major version, if one is available.MINOR
: CloudFormation updates the extension to the newest minor version, if one is available.Copyright © 2022. All rights reserved.