@ThreadSafe public interface IamStatement extends ToCopyableBuilder<IamStatement.Builder,IamStatement>
A statement describes a rule for allowing or denying access to a specific AWS resource based on how the resource is being accessed, and who is attempting to access the resource. Statements can also optionally contain a list of conditions that specify when a statement is to be honored.
For example, consider a statement that:
Statements takes the form: "A has permission to do B to C where D applies".
There are many resources and conditions available for use in statements, and you can combine them to form fine grained custom access control polices.
Statements are typically attached to a IamPolicy.
For more information, see The IAM User guide
Create a resource-based policy statement that denies access to all users.
IamPolicy,
Statement user
guide| Modifier and Type | Interface and Description |
|---|---|
static interface |
IamStatement.Builder |
copy, toBuilderstatic IamStatement.Builder builder()
IamStatement.Builder for an IamStatement.String sid()
IamStatement.Builder.sid(String).IamEffect effect()
IamStatement.Builder.effect(IamEffect).List<IamPrincipal> principals()
IamStatement.Builder.principals(Collection).List<IamPrincipal> notPrincipals()
IamStatement.Builder.notPrincipals(Collection).List<IamAction> actions()
IamStatement.Builder.actions(Collection).List<IamAction> notActions()
IamStatement.Builder.notActions(Collection).List<IamResource> resources()
IamStatement.Builder.resources(Collection).List<IamResource> notResources()
IamStatement.Builder.notResources(Collection).List<IamCondition> conditions()
IamStatement.Builder.conditions(Collection).Copyright © 2023. All rights reserved.