Class CfnGrant.Builder

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

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

    • create

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

      @Stability(Stable) public CfnGrant.Builder allowedOperations(List<String> allowedOperations)
      Allowed operations for the grant.

      Parameters:
      allowedOperations - Allowed operations for the grant. This parameter is required.
      Returns:
      this
    • grantName

      @Stability(Stable) public CfnGrant.Builder grantName(String grantName)
      Grant name.

      Parameters:
      grantName - Grant name. This parameter is required.
      Returns:
      this
    • homeRegion

      @Stability(Stable) public CfnGrant.Builder homeRegion(String homeRegion)
      Home Region of the grant.

      Parameters:
      homeRegion - Home Region of the grant. This parameter is required.
      Returns:
      this
    • licenseArn

      @Stability(Stable) public CfnGrant.Builder licenseArn(String licenseArn)
      License ARN.

      Parameters:
      licenseArn - License ARN. This parameter is required.
      Returns:
      this
    • principals

      @Stability(Stable) public CfnGrant.Builder principals(List<String> principals)
      The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):.

      • An AWS account, which includes only the account specified.
      • An organizational unit (OU), which includes all accounts in the OU.
      • An organization, which will include all accounts across your organization.

      Parameters:
      principals - The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):. This parameter is required.
      Returns:
      this
    • status

      @Stability(Stable) public CfnGrant.Builder status(String status)
      Granted license status.

      Parameters:
      status - Granted license status. This parameter is required.
      Returns:
      this
    • build

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