Package | Description |
---|---|
com.amazonaws.auth.policy |
Classes for creating custom AWS access control policies.
|
Modifier and Type | Field and Description |
---|---|
static Principal |
Principal.All
Principal instance that includes all the AWS accounts, AWS web services and web identity providers.
|
static Principal |
Principal.AllServices
Principal instance that includes all AWS web services.
|
static Principal |
Principal.AllUsers
Principal instance that includes all users, including anonymous users.
|
static Principal |
Principal.AllWebProviders
Principal instance that includes all the web identity providers.
|
Modifier and Type | Method and Description |
---|---|
List<Principal> |
Statement.getPrincipals()
Returns the principals associated with this policy statement, indicating
which AWS accounts are affected by this policy statement.
|
Modifier and Type | Method and Description |
---|---|
void |
Statement.setPrincipals(Principal... principals)
Sets the principals associated with this policy statement, indicating
which AWS accounts are affected by this policy statement.
|
Statement |
Statement.withPrincipals(Principal... principals)
Sets the principals associated with this policy statement, and returns
this updated Statement object.
|
Modifier and Type | Method and Description |
---|---|
void |
Statement.setPrincipals(Collection<Principal> principals)
Sets the principals associated with this policy statement, indicating
which AWS accounts are affected by this policy statement.
|
Copyright © 2016. All rights reserved.