@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.995Z") @Stability(value=Stable) 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.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.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 |
|---|---|
|
CfnHookVersion(software.constructs.Construct scope,
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 |
|---|---|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the hook.
|
IResolvable |
getAttrIsDefaultVersion()
Whether the specified hook version is set as the default version.
|
String |
getAttrTypeArn()
The Amazon Resource Number (ARN) assigned to this version of the hook.
|
String |
getAttrVersionId()
The ID of this version of the hook.
|
String |
getAttrVisibility()
The scope at which the resource is visible and usable in CloudFormation operations.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getExecutionRoleArn()
The Amazon Resource Name (ARN) of the task execution role that grants the hook permission.
|
Object |
getLoggingConfig()
Contains logging configuration information for an extension.
|
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.
|
String |
getTypeName()
The unique name for your hook.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setExecutionRoleArn(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(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(String value)
The unique name for your hook.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnHookVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnHookVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnHookVersion(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - 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 CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public IResolvable getAttrIsDefaultVersion()
@Stability(value=Stable) @NotNull public String getAttrTypeArn()
@Stability(value=Stable) @NotNull public String getAttrVersionId()
@Stability(value=Stable) @NotNull public 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.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public 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 .
@Stability(value=Stable)
public void setSchemaHandlerPackage(@NotNull
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 .
@Stability(value=Stable) @NotNull public 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:
AlexaAMZNAmazonASKAWSCustomDev
@Stability(value=Stable)
public void setTypeName(@NotNull
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:
AlexaAMZNAmazonASKAWSCustomDev
@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
CfnHookVersion.LoggingConfigProperty value)
@Stability(value=Stable)
public void setLoggingConfig(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.