Class CfnHookVersion.Builder

java.lang.Object
software.amazon.awscdk.core.CfnHookVersion.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHookVersion>
Enclosing class:
CfnHookVersion

@Stability(Stable) public static final class CfnHookVersion.Builder extends Object implements software.amazon.jsii.Builder<CfnHookVersion>
A fluent builder for CfnHookVersion.
  • Method Details

    • create

      @Stability(Stable) public static CfnHookVersion.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnHookVersion.Builder.
    • schemaHandlerPackage

      @Stability(Stable) public CfnHookVersion.Builder schemaHandlerPackage(String schemaHandlerPackage)
      A URL to the Amazon S3 bucket containing the hook project package that contains the necessary files for the hook you want to register.

      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 .

      Parameters:
      schemaHandlerPackage - A URL to the Amazon S3 bucket containing the hook project package that contains the necessary files for the hook you want to register. This parameter is required.
      Returns:
      this
    • typeName

      @Stability(Stable) public CfnHookVersion.Builder typeName(String typeName)
      The unique name for your hook.

      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

      Parameters:
      typeName - The unique name for your hook. This parameter is required.
      Returns:
      this
    • executionRoleArn

      @Stability(Stable) public CfnHookVersion.Builder executionRoleArn(String executionRoleArn)
      The Amazon Resource Name (ARN) of the task execution role that grants the hook permission.

      Parameters:
      executionRoleArn - The Amazon Resource Name (ARN) of the task execution role that grants the hook permission. This parameter is required.
      Returns:
      this
    • loggingConfig

      @Stability(Stable) public CfnHookVersion.Builder loggingConfig(IResolvable loggingConfig)
      Contains logging configuration information for an extension.

      Parameters:
      loggingConfig - Contains logging configuration information for an extension. This parameter is required.
      Returns:
      this
    • loggingConfig

      @Stability(Stable) public CfnHookVersion.Builder loggingConfig(CfnHookVersion.LoggingConfigProperty loggingConfig)
      Contains logging configuration information for an extension.

      Parameters:
      loggingConfig - Contains logging configuration information for an extension. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnHookVersion build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnHookVersion>
      Returns:
      a newly built instance of CfnHookVersion.