@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PermissionsBoundary extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the configuration of the AWS managed or customer managed policy that you want to set as a permissions
boundary. Specify either CustomerManagedPolicyReference
to use the name and path of a customer managed
policy, or ManagedPolicyArn
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.
Constructor and Description |
---|
PermissionsBoundary() |
Modifier and Type | Method and Description |
---|---|
PermissionsBoundary |
clone() |
boolean |
equals(Object obj) |
CustomerManagedPolicyReference |
getCustomerManagedPolicyReference()
Specifies the name and path of a customer managed policy.
|
String |
getManagedPolicyArn()
The AWS managed policy ARN that you want to attach to a permission set as a permissions boundary.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCustomerManagedPolicyReference(CustomerManagedPolicyReference customerManagedPolicyReference)
Specifies the name and path of a customer managed policy.
|
void |
setManagedPolicyArn(String managedPolicyArn)
The AWS managed policy ARN that you want to attach to a permission set as a permissions boundary.
|
String |
toString()
Returns a string representation of this object.
|
PermissionsBoundary |
withCustomerManagedPolicyReference(CustomerManagedPolicyReference customerManagedPolicyReference)
Specifies the name and path of a customer managed policy.
|
PermissionsBoundary |
withManagedPolicyArn(String managedPolicyArn)
The AWS managed policy ARN that you want to attach to a permission set as a permissions boundary.
|
public void setCustomerManagedPolicyReference(CustomerManagedPolicyReference customerManagedPolicyReference)
Specifies the name and path of a customer managed policy. You must have an IAM policy that matches the name and path in each AWS account where you want to deploy your permission set.
customerManagedPolicyReference
- Specifies the name and path of a customer managed policy. You must have an IAM policy that matches the
name and path in each AWS account where you want to deploy your permission set.public CustomerManagedPolicyReference getCustomerManagedPolicyReference()
Specifies the name and path of a customer managed policy. You must have an IAM policy that matches the name and path in each AWS account where you want to deploy your permission set.
public PermissionsBoundary withCustomerManagedPolicyReference(CustomerManagedPolicyReference customerManagedPolicyReference)
Specifies the name and path of a customer managed policy. You must have an IAM policy that matches the name and path in each AWS account where you want to deploy your permission set.
customerManagedPolicyReference
- Specifies the name and path of a customer managed policy. You must have an IAM policy that matches the
name and path in each AWS account where you want to deploy your permission set.public void setManagedPolicyArn(String managedPolicyArn)
The AWS managed policy ARN that you want to attach to a permission set as a permissions boundary.
managedPolicyArn
- The AWS managed policy ARN that you want to attach to a permission set as a permissions boundary.public String getManagedPolicyArn()
The AWS managed policy ARN that you want to attach to a permission set as a permissions boundary.
public PermissionsBoundary withManagedPolicyArn(String managedPolicyArn)
The AWS managed policy ARN that you want to attach to a permission set as a permissions boundary.
managedPolicyArn
- The AWS managed policy ARN that you want to attach to a permission set as a permissions boundary.public String toString()
toString
in class Object
Object.toString()
public PermissionsBoundary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.