@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IamRoleConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The proposed access control configuration for an IAM role. You can propose a configuration for a new IAM role or an existing IAM role that you own by specifying the trust policy. If the configuration is for a new IAM role, you must specify the trust policy. If the configuration is for an existing IAM role that you own and you do not propose the trust policy, the access preview uses the existing trust policy for the role. The proposed trust policy cannot be an empty string. For more information about role trust policy limits, see IAM and STS quotas.
Constructor and Description |
---|
IamRoleConfiguration() |
Modifier and Type | Method and Description |
---|---|
IamRoleConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getTrustPolicy()
The proposed trust policy for the IAM role.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTrustPolicy(String trustPolicy)
The proposed trust policy for the IAM role.
|
String |
toString()
Returns a string representation of this object.
|
IamRoleConfiguration |
withTrustPolicy(String trustPolicy)
The proposed trust policy for the IAM role.
|
public void setTrustPolicy(String trustPolicy)
The proposed trust policy for the IAM role.
trustPolicy
- The proposed trust policy for the IAM role.public String getTrustPolicy()
The proposed trust policy for the IAM role.
public IamRoleConfiguration withTrustPolicy(String trustPolicy)
The proposed trust policy for the IAM role.
trustPolicy
- The proposed trust policy for the IAM role.public String toString()
toString
in class Object
Object.toString()
public IamRoleConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.