Package | Description |
---|---|
com.amazonaws.auth.policy |
Classes for creating custom AWS access control policies.
|
Modifier and Type | Method and Description |
---|---|
Statement |
Statement.withActions(Action... actions)
Sets the list of actions to which this policy statement applies and
returns this updated Statement object so that additional method calls can
be chained together.
|
Statement |
Statement.withConditions(Condition... conditions)
Sets the conditions associated with this policy statement, and returns
this updated Statement object so that additional method calls can be
chained together.
|
Statement |
Statement.withId(String id)
Sets the ID for this statement and returns the updated statement so
multiple calls can be chained together.
|
Statement |
Statement.withPrincipals(Principal... principals)
Sets the principals associated with this policy statement, and returns
this updated Statement object.
|
Statement |
Statement.withResources(Resource... resources)
Sets the resources associated with this policy statement and returns this
updated Statement object so that additional method calls can be chained
together.
|
Modifier and Type | Method and Description |
---|---|
Collection<Statement> |
Policy.getStatements()
Returns the collection of statements contained by this policy.
|
Modifier and Type | Method and Description |
---|---|
Policy |
Policy.withStatements(Statement... statements)
Sets the collection of statements contained by this policy and returns
this policy object so that additional method calls can be chained
together.
|
Modifier and Type | Method and Description |
---|---|
void |
Policy.setStatements(Collection<Statement> statements)
Sets the collection of statements contained by this policy.
|
Constructor and Description |
---|
Policy(String id,
Collection<Statement> statements)
Constructs a new AWS access control policy with the specified policy ID
and collection of statements.
|
Copyright © 2022. All rights reserved.