Class CfnHookVersion

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:01.489Z") @Stability(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.*;
 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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnHookVersion

      protected CfnHookVersion(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnHookVersion

      protected CfnHookVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnHookVersion

      @Stability(Stable) public CfnHookVersion(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnHookVersionProps 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the hook.
    • getAttrIsDefaultVersion

      @Stability(Stable) @NotNull public IResolvable getAttrIsDefaultVersion()
      Whether the specified hook version is set as the default version.
    • getAttrTypeArn

      @Stability(Stable) @NotNull public String getAttrTypeArn()
      The Amazon Resource Number (ARN) assigned to this version of the hook.
    • getAttrVersionId

      @Stability(Stable) @NotNull public String getAttrVersionId()
      The ID of this version of the hook.
    • getAttrVisibility

      @Stability(Stable) @NotNull public String getAttrVisibility()
      The scope at which the resource is visible and usable in CloudFormation operations.

      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.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getSchemaHandlerPackage

      @Stability(Stable) @NotNull public 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.
    • setSchemaHandlerPackage

      @Stability(Stable) public void setSchemaHandlerPackage(@NotNull 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.
    • getTypeName

      @Stability(Stable) @NotNull public String getTypeName()
      The unique name for your hook.
    • setTypeName

      @Stability(Stable) public void setTypeName(@NotNull String value)
      The unique name for your hook.
    • getExecutionRoleArn

      @Stability(Stable) @Nullable public String getExecutionRoleArn()
      The Amazon Resource Name (ARN) of the task execution role that grants the hook permission.
    • setExecutionRoleArn

      @Stability(Stable) public void setExecutionRoleArn(@Nullable String value)
      The Amazon Resource Name (ARN) of the task execution role that grants the hook permission.
    • getLoggingConfig

      @Stability(Stable) @Nullable public Object getLoggingConfig()
      Contains logging configuration information for an extension.
    • setLoggingConfig

      @Stability(Stable) public void setLoggingConfig(@Nullable IResolvable value)
      Contains logging configuration information for an extension.
    • setLoggingConfig

      @Stability(Stable) public void setLoggingConfig(@Nullable CfnHookVersion.LoggingConfigProperty value)
      Contains logging configuration information for an extension.