Class CfnPermissionSetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPermissionSetProps>
- Enclosing interface:
- CfnPermissionSetProps
CfnPermissionSetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customerManagedPolicyReferences
(List<? extends Object> customerManagedPolicyReferences) Sets the value ofCfnPermissionSetProps.getCustomerManagedPolicyReferences()
customerManagedPolicyReferences
(IResolvable customerManagedPolicyReferences) Sets the value ofCfnPermissionSetProps.getCustomerManagedPolicyReferences()
description
(String description) Sets the value ofCfnPermissionSetProps.getDescription()
inlinePolicy
(Object inlinePolicy) Sets the value ofCfnPermissionSetProps.getInlinePolicy()
instanceArn
(String instanceArn) Sets the value ofCfnPermissionSetProps.getInstanceArn()
managedPolicies
(List<String> managedPolicies) Sets the value ofCfnPermissionSetProps.getManagedPolicies()
Sets the value ofCfnPermissionSetProps.getName()
permissionsBoundary
(IResolvable permissionsBoundary) Sets the value ofCfnPermissionSetProps.getPermissionsBoundary()
permissionsBoundary
(CfnPermissionSet.PermissionsBoundaryProperty permissionsBoundary) Sets the value ofCfnPermissionSetProps.getPermissionsBoundary()
relayStateType
(String relayStateType) Sets the value ofCfnPermissionSetProps.getRelayStateType()
sessionDuration
(String sessionDuration) Sets the value ofCfnPermissionSetProps.getSessionDuration()
Sets the value ofCfnPermissionSetProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceArn
Sets the value ofCfnPermissionSetProps.getInstanceArn()
- Parameters:
instanceArn
- The ARN of the IAM Identity Center instance under which the operation will be executed. This parameter is required. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .- Returns:
this
-
name
Sets the value ofCfnPermissionSetProps.getName()
- Parameters:
name
- The name of the permission set. This parameter is required.- Returns:
this
-
customerManagedPolicyReferences
@Stability(Stable) public CfnPermissionSetProps.Builder customerManagedPolicyReferences(IResolvable customerManagedPolicyReferences) Sets the value ofCfnPermissionSetProps.getCustomerManagedPolicyReferences()
- Parameters:
customerManagedPolicyReferences
- Specifies the names and paths of the customer managed policies that you have attached to your permission set.- Returns:
this
-
customerManagedPolicyReferences
@Stability(Stable) public CfnPermissionSetProps.Builder customerManagedPolicyReferences(List<? extends Object> customerManagedPolicyReferences) Sets the value ofCfnPermissionSetProps.getCustomerManagedPolicyReferences()
- Parameters:
customerManagedPolicyReferences
- Specifies the names and paths of the customer managed policies that you have attached to your permission set.- Returns:
this
-
description
Sets the value ofCfnPermissionSetProps.getDescription()
- Parameters:
description
- The description of thePermissionSet
.- Returns:
this
-
inlinePolicy
Sets the value ofCfnPermissionSetProps.getInlinePolicy()
- Parameters:
inlinePolicy
- The inline policy that is attached to the permission set.For
Length Constraints
, if a valid ARN is provided for a permission set, it is possible for an empty inline policy to be returned.- Returns:
this
-
managedPolicies
@Stability(Stable) public CfnPermissionSetProps.Builder managedPolicies(List<String> managedPolicies) Sets the value ofCfnPermissionSetProps.getManagedPolicies()
- Parameters:
managedPolicies
- A structure that stores the details of the AWS managed policy.- Returns:
this
-
permissionsBoundary
@Stability(Stable) public CfnPermissionSetProps.Builder permissionsBoundary(IResolvable permissionsBoundary) Sets the value ofCfnPermissionSetProps.getPermissionsBoundary()
- Parameters:
permissionsBoundary
- Specifies the configuration of the AWS managed or customer managed policy that you want to set as a permissions boundary. Specify eitherCustomerManagedPolicyReference
to use the name and path of a customer managed policy, orManagedPolicyArn
to use the ARN of an AWS managed policy. A permissions boundary represents the maximum permissions that any policy can grant your role. For more information, see Permissions boundaries for IAM entities in the IAM User Guide .Policies used as permissions boundaries don't provide permissions. You must also attach an IAM policy to the role. To learn how the effective permissions for a role are evaluated, see IAM JSON policy evaluation logic in the IAM User Guide .
- Returns:
this
-
permissionsBoundary
@Stability(Stable) public CfnPermissionSetProps.Builder permissionsBoundary(CfnPermissionSet.PermissionsBoundaryProperty permissionsBoundary) Sets the value ofCfnPermissionSetProps.getPermissionsBoundary()
- Parameters:
permissionsBoundary
- Specifies the configuration of the AWS managed or customer managed policy that you want to set as a permissions boundary. Specify eitherCustomerManagedPolicyReference
to use the name and path of a customer managed policy, orManagedPolicyArn
to use the ARN of an AWS managed policy. A permissions boundary represents the maximum permissions that any policy can grant your role. For more information, see Permissions boundaries for IAM entities in the IAM User Guide .Policies used as permissions boundaries don't provide permissions. You must also attach an IAM policy to the role. To learn how the effective permissions for a role are evaluated, see IAM JSON policy evaluation logic in the IAM User Guide .
- Returns:
this
-
relayStateType
Sets the value ofCfnPermissionSetProps.getRelayStateType()
- Parameters:
relayStateType
- Used to redirect users within the application during the federation authentication process.- Returns:
this
-
sessionDuration
Sets the value ofCfnPermissionSetProps.getSessionDuration()
- Parameters:
sessionDuration
- The length of time that the application user sessions are valid for in the ISO-8601 standard.- Returns:
this
-
tags
Sets the value ofCfnPermissionSetProps.getTags()
- Parameters:
tags
- The tags to attach to the newPermissionSet
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPermissionSetProps>
- Returns:
- a new instance of
CfnPermissionSetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-