@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:30.416Z") public class CfnHookVersion extends CfnResource implements IInspectable
The HookVersion
resource publishes new or first hook version to the AWS CloudFormation registry.
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.cloudformation.*; CfnHookVersion cfnHookVersion = CfnHookVersion.Builder.create(this, "MyCfnHookVersion") .schemaHandlerPackage("schemaHandlerPackage") .typeName("typeName") // the properties below are optional .executionRoleArn("executionRoleArn") .loggingConfig(LoggingConfigProperty.builder() .logGroupName("logGroupName") .logRoleArn("logRoleArn") .build()) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnHookVersion.Builder
A fluent builder for
CfnHookVersion . |
static interface |
CfnHookVersion.LoggingConfigProperty
The `LoggingConfig` property type specifies logging configuration information for an extension.
|
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 |
---|---|
|
CfnHookVersion(Construct scope,
java.lang.String id,
CfnHookVersionProps props)
Create a new `AWS::CloudFormation::HookVersion`.
|
protected |
CfnHookVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnHookVersion(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrArn()
The Amazon Resource Name (ARN) of the hook.
|
IResolvable |
getAttrIsDefaultVersion()
Whether the specified hook version is set as the default version.
|
java.lang.String |
getAttrTypeArn()
The Amazon Resource Number (ARN) assigned to this version of the hook.
|
java.lang.String |
getAttrVersionId()
The ID of this version of the hook.
|
java.lang.String |
getAttrVisibility()
The scope at which the resource is visible and usable in CloudFormation operations.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getExecutionRoleArn()
The Amazon Resource Name (ARN) of the task execution role that grants the hook permission.
|
java.lang.Object |
getLoggingConfig()
Contains logging configuration information for an extension.
|
java.lang.String |
getSchemaHandlerPackage()
A URL to the Amazon S3 bucket containing the hook project package that contains the necessary files for the hook you want to register.
|
java.lang.String |
getTypeName()
The unique name for your hook.
|
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 |
setExecutionRoleArn(java.lang.String value)
The Amazon Resource Name (ARN) of the task execution role that grants the hook permission.
|
void |
setLoggingConfig(CfnHookVersion.LoggingConfigProperty value)
Contains logging configuration information for an extension.
|
void |
setLoggingConfig(IResolvable value)
Contains logging configuration information for an extension.
|
void |
setSchemaHandlerPackage(java.lang.String value)
A URL to the Amazon S3 bucket containing the hook project package that contains the necessary files for the hook you want to register.
|
void |
setTypeName(java.lang.String value)
The unique name for your hook.
|
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 CfnHookVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnHookVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnHookVersion(Construct scope, java.lang.String id, CfnHookVersionProps 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 getAttrArn()
public IResolvable getAttrIsDefaultVersion()
public java.lang.String getAttrTypeArn()
public java.lang.String getAttrVersionId()
public java.lang.String getAttrVisibility()
Valid values include:
PRIVATE
: The resource is only visible and usable within the account in which it's registered. CloudFormation marks any resources you register as PRIVATE
.PUBLIC
: The resource is publicly visible and usable within any Amazon account.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getSchemaHandlerPackage()
For information on generating a schema handler package for the resource you want to register, see submit in the CloudFormation CLI User Guide for Extension Development .
The user registering the resource must be able to access the package in the S3 bucket. That's, the user must have GetObject permissions for the schema handler package. For more information, see Actions, Resources, and Condition Keys for Amazon S3 in the AWS Identity and Access Management User Guide .
public void setSchemaHandlerPackage(java.lang.String value)
For information on generating a schema handler package for the resource you want to register, see submit in the CloudFormation CLI User Guide for Extension Development .
The user registering the resource must be able to access the package in the S3 bucket. That's, the user must have GetObject permissions for the schema handler package. For more information, see Actions, Resources, and Condition Keys for Amazon S3 in the AWS Identity and Access Management User Guide .
public java.lang.String getTypeName()
Specifies a three-part namespace for your hook, with a recommended pattern of Organization::Service::Hook
.
The following organization namespaces are reserved and can't be used in your hook type names:
Alexa
AMZN
Amazon
ASK
AWS
Custom
Dev
public void setTypeName(java.lang.String value)
Specifies a three-part namespace for your hook, with a recommended pattern of Organization::Service::Hook
.
The following organization namespaces are reserved and can't be used in your hook type names:
Alexa
AMZN
Amazon
ASK
AWS
Custom
Dev
public java.lang.String getExecutionRoleArn()
public void setExecutionRoleArn(java.lang.String value)
public java.lang.Object getLoggingConfig()
public void setLoggingConfig(CfnHookVersion.LoggingConfigProperty value)
public void setLoggingConfig(IResolvable value)