Class CfnExtension
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IExtensionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
An extension augments your ability to inject logic or behavior at different points during the AWS AppConfig workflow of creating or deploying a configuration.
You can create your own extensions or use the AWS authored extensions provided by AWS AppConfig . For an AWS AppConfig extension that uses AWS Lambda , you must create a Lambda function to perform any computation and processing defined in the extension. If you plan to create custom versions of the AWS authored notification extensions, you only need to specify an Amazon Resource Name (ARN) in the Uri field for the new extension version.
- For a custom EventBridge notification extension, enter the ARN of the EventBridge default events in the
Urifield. - For a custom Amazon SNS notification extension, enter the ARN of an Amazon SNS topic in the
Urifield. - For a custom Amazon SQS notification extension, enter the ARN of an Amazon SQS message queue in the
Urifield.
For more information about extensions, see Extending workflows in the AWS AppConfig 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.appconfig.*;
Object actions;
CfnExtension cfnExtension = CfnExtension.Builder.create(this, "MyCfnExtension")
.actions(actions)
.name("name")
// the properties below are optional
.description("description")
.latestVersionNumber(123)
.parameters(Map.of(
"parametersKey", ParameterProperty.builder()
.required(false)
// the properties below are optional
.description("description")
.dynamic(false)
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe actions defined in the extension.static final classA fluent builder forCfnExtension.static interfaceA value such as an Amazon Resource Name (ARN) or an Amazon Simple Notification Service topic entered in an extension when invoked.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.appconfig.IExtensionRef
IExtensionRef.Jsii$Default, IExtensionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnExtension(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnExtension(software.amazon.jsii.JsiiObjectRef objRef) CfnExtension(software.constructs.Construct scope, String id, CfnExtensionProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe actions defined in the extension.The system-generated Amazon Resource Name (ARN) for the extension.The system-generated ID of the extension.The extension version number.Information about the extension.A reference to a Extension resource.You can omit this field when you create an extension.getName()A name for the extension.The parameters accepted by the extension.getTags()Tag Manager which manages the tags for this resource.Adds one or more tags for the specified extension.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetActions(Object value) The actions defined in the extension.voidsetDescription(String value) Information about the extension.voidsetLatestVersionNumber(Number value) You can omit this field when you create an extension.voidA name for the extension.voidsetParameters(Map<String, Object> value) The parameters accepted by the extension.voidsetParameters(IResolvable value) The parameters accepted by the extension.voidsetTagsRaw(List<CfnTag> value) Adds one or more tags for the specified extension.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnExtension
protected CfnExtension(software.amazon.jsii.JsiiObjectRef objRef) -
CfnExtension
protected CfnExtension(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnExtension
@Stability(Stable) public CfnExtension(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnExtensionProps 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
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The system-generated Amazon Resource Name (ARN) for the extension. -
getAttrId
The system-generated ID of the extension. -
getAttrVersionNumber
The extension version number. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getExtensionRef
A reference to a Extension resource.- Specified by:
getExtensionRefin interfaceIExtensionRef
-
getTags
Tag Manager which manages the tags for this resource. -
getActions
The actions defined in the extension. -
setActions
The actions defined in the extension. -
getName
A name for the extension. -
setName
A name for the extension. -
getDescription
Information about the extension. -
setDescription
Information about the extension. -
getLatestVersionNumber
You can omit this field when you create an extension. -
setLatestVersionNumber
You can omit this field when you create an extension. -
getParameters
The parameters accepted by the extension.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnExtension.ParameterProperty> -
setParameters
The parameters accepted by the extension. -
setParameters
The parameters accepted by the extension. -
getTagsRaw
Adds one or more tags for the specified extension. -
setTagsRaw
Adds one or more tags for the specified extension.
-