Class CfnExtension
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::AppConfig::Extension
.
Creates an AWS AppConfig extension. 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
Uri
field. - For a custom Amazon SNS notification extension, enter the ARN of an Amazon SNS topic in the
Uri
field. - For a custom Amazon SQS notification extension, enter the ARN of an Amazon SQS message queue in the
Uri
field.
For more information about extensions, see Working with AWS AppConfig extensions 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") .build())) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A fluent builder forCfnExtension
.static interface
A 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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnExtension
(Construct scope, String id, CfnExtensionProps props) Create a newAWS::AppConfig::Extension
.protected
CfnExtension
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnExtension
(software.amazon.jsii.JsiiObjectRef objRef) -
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.You can omit this field when you create an extension.getName()
A name for the extension.The parameters accepted by the extension.getTags()
Adds one or more tags for the specified extension.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setActions
(Object value) The actions defined in the extension.void
setDescription
(String value) Information about the extension.void
setLatestVersionNumber
(Number value) You can omit this field when you create an extension.void
A name for the extension.void
setParameters
(Map<String, Object> value) The parameters accepted by the extension.void
setParameters
(IResolvable value) The parameters accepted by the extension.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 Construct scope, @NotNull String id, @NotNull CfnExtensionProps props) Create a newAWS::AppConfig::Extension
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
getTags
Adds one or more tags for the specified extension.Tags are metadata that help you categorize resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define.
-
getActions
The actions defined in the extension. -
setActions
The actions defined in the extension. -
getName
A name for the extension.Each extension name in your account must be unique. Extension versions use the same name.
-
setName
A name for the extension.Each extension name in your account must be unique. Extension versions use the same name.
-
getDescription
Information about the extension. -
setDescription
Information about the extension. -
getLatestVersionNumber
You can omit this field when you create an extension.When you create a new version, specify the most recent current version number. For example, you create version 3, enter 2 for this field.
-
setLatestVersionNumber
You can omit this field when you create an extension.When you create a new version, specify the most recent current version number. For example, you create version 3, enter 2 for this field.
-
getParameters
The parameters accepted by the extension.You specify parameter values when you associate the extension to an AWS AppConfig resource by using the
CreateExtensionAssociation
API action. For AWS Lambda extension actions, these parameters are included in the Lambda request object. -
setParameters
The parameters accepted by the extension.You specify parameter values when you associate the extension to an AWS AppConfig resource by using the
CreateExtensionAssociation
API action. For AWS Lambda extension actions, these parameters are included in the Lambda request object. -
setParameters
The parameters accepted by the extension.You specify parameter values when you associate the extension to an AWS AppConfig resource by using the
CreateExtensionAssociation
API action. For AWS Lambda extension actions, these parameters are included in the Lambda request object.
-