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 Summary
Modifier and TypeMethodDescriptionallowedOperations
(List<String> allowedOperations) Allowed operations for the grant.build()
static CfnGrant.Builder
Grant name.homeRegion
(String homeRegion) Home Region of the grant.licenseArn
(String licenseArn) License ARN.principals
(List<String> principals) The grant principals.Granted license status.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnGrant.Builder
.
-
allowedOperations
Allowed operations for the grant.- Parameters:
allowedOperations
- Allowed operations for the grant. This parameter is required.- Returns:
this
-
grantName
Grant name.- Parameters:
grantName
- Grant name. This parameter is required.- Returns:
this
-
homeRegion
Home Region of the grant.- Parameters:
homeRegion
- Home Region of the grant. This parameter is required.- Returns:
this
-
licenseArn
License ARN.- Parameters:
licenseArn
- License ARN. This parameter is required.- Returns:
this
-
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
Granted license status.- Parameters:
status
- Granted license status. This parameter is required.- Returns:
this
-
build
-