Class CfnPermission.Builder

java.lang.Object
software.amazon.awscdk.services.acmpca.CfnPermission.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPermission>
Enclosing class:
CfnPermission

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

    • create

      @Stability(Stable) public static CfnPermission.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 CfnPermission.Builder.
    • actions

      @Stability(Stable) public CfnPermission.Builder actions(List<String> actions)
      The private CA actions that can be performed by the designated AWS service.

      Supported actions are IssueCertificate , GetCertificate , and ListPermissions .

      Parameters:
      actions - The private CA actions that can be performed by the designated AWS service. This parameter is required.
      Returns:
      this
    • certificateAuthorityArn

      @Stability(Stable) public CfnPermission.Builder certificateAuthorityArn(String certificateAuthorityArn)
      The Amazon Resource Number (ARN) of the private CA from which the permission was issued.

      Parameters:
      certificateAuthorityArn - The Amazon Resource Number (ARN) of the private CA from which the permission was issued. This parameter is required.
      Returns:
      this
    • principal

      @Stability(Stable) public CfnPermission.Builder principal(String principal)
      The AWS service or entity that holds the permission.

      At this time, the only valid principal is acm.amazonaws.com .

      Parameters:
      principal - The AWS service or entity that holds the permission. This parameter is required.
      Returns:
      this
    • sourceAccount

      @Stability(Stable) public CfnPermission.Builder sourceAccount(String sourceAccount)
      The ID of the account that assigned the permission.

      Parameters:
      sourceAccount - The ID of the account that assigned the permission. This parameter is required.
      Returns:
      this
    • build

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