@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessPolicy extends Object implements Serializable, Cloneable, StructuredPojo
An access policy includes permissions that allow Amazon EKS to authorize an IAM principal to work with Kubernetes
objects on your cluster. The policies are managed by Amazon EKS, but they're not IAM policies. You can't view the
permissions in the policies using the API. The permissions for many of the policies are similar to the Kubernetes
cluster-admin
, admin
, edit
, and view
cluster roles. For more
information about these cluster roles, see User-facing roles in the
Kubernetes documentation. To view the contents of the policies, see Access policy
permissions in the Amazon EKS User Guide.
Constructor and Description |
---|
AccessPolicy() |
Modifier and Type | Method and Description |
---|---|
AccessPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the access policy.
|
String |
getName()
The name of the access policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN of the access policy.
|
void |
setName(String name)
The name of the access policy.
|
String |
toString()
Returns a string representation of this object.
|
AccessPolicy |
withArn(String arn)
The ARN of the access policy.
|
AccessPolicy |
withName(String name)
The name of the access policy.
|
public void setName(String name)
The name of the access policy.
name
- The name of the access policy.public String getName()
The name of the access policy.
public AccessPolicy withName(String name)
The name of the access policy.
name
- The name of the access policy.public void setArn(String arn)
The ARN of the access policy.
arn
- The ARN of the access policy.public String getArn()
The ARN of the access policy.
public AccessPolicy withArn(String arn)
The ARN of the access policy.
arn
- The ARN of the access policy.public String toString()
toString
in class Object
Object.toString()
public AccessPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.