Interface IamStatement.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<IamStatement.Builder,IamStatement>,SdkBuilder<IamStatement.Builder,IamStatement>
- All Known Implementing Classes:
DefaultIamStatement.Builder
- Enclosing interface:
- IamStatement
public static interface IamStatement.Builder extends CopyableBuilder<IamStatement.Builder,IamStatement>
- See Also:
IamStatement.builder()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IamStatement.BuilderactionIds(Collection<String> actions)Configure theActionelement of the statement, specifying the actions that are allowed or denied.IamStatement.Builderactions(Collection<IamAction> actions)Configure theActionelement of the statement, specifying the actions that are allowed or denied.IamStatement.BuilderaddAction(String action)Append anActionelement to this statement, specifying an action that is allowed or denied.IamStatement.BuilderaddAction(IamAction action)Append anActionelement to this statement, specifying an action that is allowed or denied.IamStatement.BuilderaddCondition(String operator, String key, String values)Append aConditionto the statement, specifying a condition in which the statement is in effect.IamStatement.BuilderaddCondition(Consumer<IamCondition.Builder> condition)Append aConditionto the statement, specifying a condition in which the statement is in effect.IamStatement.BuilderaddCondition(IamCondition condition)Append aConditionto the statement, specifying a condition in which the statement is in effect.IamStatement.BuilderaddCondition(IamConditionOperator operator, String key, String value)Append aConditionto the statement, specifying a condition in which the statement is in effect.IamStatement.BuilderaddCondition(IamConditionOperator operator, IamConditionKey key, String value)Append aConditionto the statement, specifying a condition in which the statement is in effect.IamStatement.BuilderaddConditions(String operator, String key, Collection<String> values)Append multipleConditions to the statement, specifying conditions in which the statement is in effect.IamStatement.BuilderaddConditions(IamConditionOperator operator, String key, Collection<String> values)Append multipleConditions to the statement, specifying conditions in which the statement is in effect.IamStatement.BuilderaddConditions(IamConditionOperator operator, IamConditionKey key, Collection<String> values)Append multipleConditions to the statement, specifying conditions in which the statement is in effect.IamStatement.BuilderaddNotAction(String action)Append aNotActionelement to this statement, specifying an action that is denied or allowed.IamStatement.BuilderaddNotAction(IamAction action)Append aNotActionelement to this statement, specifying an action that is denied or allowed.IamStatement.BuilderaddNotPrincipal(String iamPrincipalType, String notPrincipal)Append aNotPrincipalto this statement, specifying that all principals are affected by the policy except the ones listed.IamStatement.BuilderaddNotPrincipal(Consumer<IamPrincipal.Builder> notPrincipal)Append aNotPrincipalto this statement, specifying that all principals are affected by the policy except the ones listed.IamStatement.BuilderaddNotPrincipal(IamPrincipal notPrincipal)Append aNotPrincipalto this statement, specifying that all principals are affected by the policy except the ones listed.IamStatement.BuilderaddNotPrincipal(IamPrincipalType iamPrincipalType, String notPrincipal)Append aNotPrincipalto this statement, specifying that all principals are affected by the policy except the ones listed.IamStatement.BuilderaddNotPrincipals(String iamPrincipalType, Collection<String> notPrincipals)Append multipleNotPrincipals to this statement, specifying that all principals are affected by the policy except the ones listed.IamStatement.BuilderaddNotPrincipals(IamPrincipalType iamPrincipalType, Collection<String> notPrincipals)Append multipleNotPrincipals to this statement, specifying that all principals are affected by the policy except the ones listed.IamStatement.BuilderaddNotResource(String resource)Append aNotResourceelement to the statement, specifying that the statement should apply to every resource except the ones listed.IamStatement.BuilderaddNotResource(IamResource resource)Append aNotResourceelement to the statement, specifying that the statement should apply to every resource except the ones listed.IamStatement.BuilderaddPrincipal(String iamPrincipalType, String principal)Append aPrincipalto this statement, specifying a principal that is allowed or denied access to a resource.IamStatement.BuilderaddPrincipal(Consumer<IamPrincipal.Builder> principal)Append aPrincipalto this statement, specifying a principal that is allowed or denied access to a resource.IamStatement.BuilderaddPrincipal(IamPrincipal principal)Append aPrincipalto this statement, specifying a principal that is allowed or denied access to a resource.IamStatement.BuilderaddPrincipal(IamPrincipalType iamPrincipalType, String principal)Append aPrincipalto this statement, specifying a principal that is allowed or denied access to a resource.IamStatement.BuilderaddPrincipals(String iamPrincipalType, Collection<String> principals)Append multiplePrincipals to this statement, specifying principals that are allowed or denied access to a resource.IamStatement.BuilderaddPrincipals(IamPrincipalType iamPrincipalType, Collection<String> principals)Append multiplePrincipals to this statement, specifying principals that are allowed or denied access to a resource.IamStatement.BuilderaddResource(String resource)Append aResourceelement to the statement, specifying a resource that the statement covers.IamStatement.BuilderaddResource(IamResource resource)Append aResourceelement to the statement, specifying a resource that the statement covers.IamStatement.Builderconditions(Collection<IamCondition> conditions)Configure theConditionelement of the statement, specifying the conditions in which the statement is in effect.IamStatement.Buildereffect(String effect)Configure theEffectelement of the policy, specifying whether the statement results in an allow or deny.IamStatement.Buildereffect(IamEffect effect)Configure theEffectelement of the policy, specifying whether the statement results in an allow or deny.IamStatement.BuildernotActionIds(Collection<String> actions)Configure theNotActionelement of the statement, specifying actions that are denied or allowed.IamStatement.BuildernotActions(Collection<IamAction> actions)Configure theNotActionelement of the statement, specifying actions that are denied or allowed.IamStatement.BuildernotPrincipals(Collection<IamPrincipal> notPrincipals)Configure theNotPrincipalelement of the statement, specifying that all principals are affected by the policy except the ones listed.IamStatement.BuildernotResourceIds(Collection<String> resources)Configure theNotResourceelement of the statement, specifying that the statement should apply to every resource except the ones listed.IamStatement.BuildernotResources(Collection<IamResource> resources)Configure theNotResourceelement of the statement, specifying that the statement should apply to every resource except the ones listed.IamStatement.Builderprincipals(Collection<IamPrincipal> principals)Configure thePrincipalelement of the statement, specifying the principals that are allowed or denied access to a resource.IamStatement.BuilderresourceIds(Collection<String> resources)Configure theResourceelement of the statement, specifying the resource(s) that the statement covers.IamStatement.Builderresources(Collection<IamResource> resources)Configure theResourceelement of the statement, specifying the resource(s) that the statement covers.IamStatement.Buildersid(String sid)Configure theSidelement of the policy, specifying an identifier for the statement.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
-
-
-
Method Detail
-
sid
IamStatement.Builder sid(String sid)
Configure theSidelement of the policy, specifying an identifier for the statement.- See Also:
- Sid user guide
-
effect
IamStatement.Builder effect(IamEffect effect)
Configure theEffectelement of the policy, specifying whether the statement results in an allow or deny.This value is required.
- See Also:
IamEffect, Effect user guide
-
effect
IamStatement.Builder effect(String effect)
Configure theEffectelement of the policy, specifying whether the statement results in an allow or deny.This works the same as
effect(IamEffect), except you do not need toIamEffect. This value is required.- See Also:
IamEffect, Effect user guide
-
principals
IamStatement.Builder principals(Collection<IamPrincipal> principals)
Configure thePrincipalelement of the statement, specifying the principals that are allowed or denied access to a resource.This will replace any other principals already added to the statement.
- See Also:
IamPrincipal, Principal user guide
-
addPrincipal
IamStatement.Builder addPrincipal(IamPrincipal principal)
Append aPrincipalto this statement, specifying a principal that is allowed or denied access to a resource.- See Also:
- Principal user guide
-
addPrincipal
IamStatement.Builder addPrincipal(Consumer<IamPrincipal.Builder> principal)
Append aPrincipalto this statement, specifying a principal that is allowed or denied access to a resource.This works the same as
addPrincipal(IamPrincipal), except you do not need to specifyIamPrincipal .builder()orbuild().- See Also:
- Principal user guide
-
addPrincipal
IamStatement.Builder addPrincipal(IamPrincipalType iamPrincipalType, String principal)
Append aPrincipalto this statement, specifying a principal that is allowed or denied access to a resource.This works the same as
addPrincipal(IamPrincipal), except you do not need to specifyIamPrincipal .create().- See Also:
- Principal user guide
-
addPrincipal
IamStatement.Builder addPrincipal(String iamPrincipalType, String principal)
Append aPrincipalto this statement, specifying a principal that is allowed or denied access to a resource.This works the same as
addPrincipal(IamPrincipalType, String), except you do not need to specifyIamPrincipalType.create().- See Also:
- Principal user guide
-
addPrincipals
IamStatement.Builder addPrincipals(IamPrincipalType iamPrincipalType, Collection<String> principals)
Append multiplePrincipals to this statement, specifying principals that are allowed or denied access to a resource.This works the same as calling
addPrincipal(IamPrincipalType, String)multiple times with the sameIamPrincipalType.- See Also:
- Principal user guide
-
addPrincipals
IamStatement.Builder addPrincipals(String iamPrincipalType, Collection<String> principals)
Append multiplePrincipals to this statement, specifying principals that are allowed or denied access to a resource.This works the same as calling
addPrincipal(String, String)multiple times with the sameIamPrincipalType.- See Also:
- Principal user guide
-
notPrincipals
IamStatement.Builder notPrincipals(Collection<IamPrincipal> notPrincipals)
Configure theNotPrincipalelement of the statement, specifying that all principals are affected by the policy except the ones listed.Very few scenarios require the use of
NotPrincipal. We recommend that you explore other authorization options before you decide to useNotPrincipal.NotPrincipalcan only be used withIamEffect.DENYstatements.This will replace any other not-principals already added to the statement.
- See Also:
- NotPrincipal user guide
-
addNotPrincipal
IamStatement.Builder addNotPrincipal(IamPrincipal notPrincipal)
Append aNotPrincipalto this statement, specifying that all principals are affected by the policy except the ones listed.Very few scenarios require the use of
NotPrincipal. We recommend that you explore other authorization options before you decide to useNotPrincipal.NotPrincipalcan only be used withIamEffect.DENYstatements.- See Also:
- NotPrincipal user guide
-
addNotPrincipal
IamStatement.Builder addNotPrincipal(Consumer<IamPrincipal.Builder> notPrincipal)
Append aNotPrincipalto this statement, specifying that all principals are affected by the policy except the ones listed.Very few scenarios require the use of
NotPrincipal. We recommend that you explore other authorization options before you decide to useNotPrincipal.NotPrincipalcan only be used withIamEffect.DENYstatements.This works the same as
addNotPrincipal(IamPrincipal), except you do not need to specifyIamPrincipal .builder()orbuild().- See Also:
- NotPrincipal user guide
-
addNotPrincipal
IamStatement.Builder addNotPrincipal(IamPrincipalType iamPrincipalType, String notPrincipal)
Append aNotPrincipalto this statement, specifying that all principals are affected by the policy except the ones listed.Very few scenarios require the use of
NotPrincipal. We recommend that you explore other authorization options before you decide to useNotPrincipal.NotPrincipalcan only be used withIamEffect.DENYstatements.This works the same as
addNotPrincipal(IamPrincipal), except you do not need to specifyIamPrincipal .create().- See Also:
- NotPrincipal user guide
-
addNotPrincipal
IamStatement.Builder addNotPrincipal(String iamPrincipalType, String notPrincipal)
Append aNotPrincipalto this statement, specifying that all principals are affected by the policy except the ones listed.Very few scenarios require the use of
NotPrincipal. We recommend that you explore other authorization options before you decide to useNotPrincipal.NotPrincipalcan only be used withIamEffect.DENYstatements.This works the same as
addNotPrincipal(IamPrincipalType, String), except you do not need to specifyIamPrincipalType.create().- See Also:
- NotPrincipal user guide
-
addNotPrincipals
IamStatement.Builder addNotPrincipals(IamPrincipalType iamPrincipalType, Collection<String> notPrincipals)
Append multipleNotPrincipals to this statement, specifying that all principals are affected by the policy except the ones listed.Very few scenarios require the use of
NotPrincipal. We recommend that you explore other authorization options before you decide to useNotPrincipal.NotPrincipalcan only be used withIamEffect.DENYstatements.This works the same as calling
addNotPrincipal(IamPrincipalType, String)multiple times with the sameIamPrincipalType.- See Also:
- NotPrincipal user guide
-
addNotPrincipals
IamStatement.Builder addNotPrincipals(String iamPrincipalType, Collection<String> notPrincipals)
Append multipleNotPrincipals to this statement, specifying that all principals are affected by the policy except the ones listed.Very few scenarios require the use of
NotPrincipal. We recommend that you explore other authorization options before you decide to useNotPrincipal.NotPrincipalcan only be used withIamEffect.DENYstatements.This works the same as calling
addNotPrincipal(String, String)multiple times with the sameIamPrincipalType.- See Also:
- NotPrincipal user guide
-
actions
IamStatement.Builder actions(Collection<IamAction> actions)
Configure theActionelement of the statement, specifying the actions that are allowed or denied.This will replace any other actions already added to the statement.
- See Also:
- Action user guide
-
actionIds
IamStatement.Builder actionIds(Collection<String> actions)
Configure theActionelement of the statement, specifying the actions that are allowed or denied.This works the same as
actions(Collection), except you do not need to callIamAction.create()on each action. This will replace any other actions already added to the statement.- See Also:
- Action user guide
-
addAction
IamStatement.Builder addAction(IamAction action)
Append anActionelement to this statement, specifying an action that is allowed or denied.- See Also:
- Action user guide
-
addAction
IamStatement.Builder addAction(String action)
Append anActionelement to this statement, specifying an action that is allowed or denied.This works the same as
addAction(IamAction), except you do not need to callIamAction.create().- See Also:
- Action user guide
-
notActions
IamStatement.Builder notActions(Collection<IamAction> actions)
Configure theNotActionelement of the statement, specifying actions that are denied or allowed.This will replace any other not-actions already added to the statement.
- See Also:
- NotAction user guide
-
notActionIds
IamStatement.Builder notActionIds(Collection<String> actions)
Configure theNotActionelement of the statement, specifying actions that are denied or allowed.This works the same as
notActions(Collection), except you do not need to callIamAction.create()on each action. This will replace any other not-actions already added to the statement.- See Also:
- NotAction user guide
-
addNotAction
IamStatement.Builder addNotAction(IamAction action)
Append aNotActionelement to this statement, specifying an action that is denied or allowed.- See Also:
- NotAction user guide
-
addNotAction
IamStatement.Builder addNotAction(String action)
Append aNotActionelement to this statement, specifying an action that is denied or allowed.This works the same as
addNotAction(IamAction), except you do not need to callIamAction.create().- See Also:
- NotAction user guide
-
resources
IamStatement.Builder resources(Collection<IamResource> resources)
Configure theResourceelement of the statement, specifying the resource(s) that the statement covers.This will replace any other resources already added to the statement.
- See Also:
- Resource user guide
-
resourceIds
IamStatement.Builder resourceIds(Collection<String> resources)
Configure theResourceelement of the statement, specifying the resource(s) that the statement covers.This works the same as
resources(Collection), except you do not need to callIamResource.create()on each resource. This will replace any other resources already added to the statement.- See Also:
- Resource user guide
-
addResource
IamStatement.Builder addResource(IamResource resource)
Append aResourceelement to the statement, specifying a resource that the statement covers.- See Also:
- Resource user guide
-
addResource
IamStatement.Builder addResource(String resource)
Append aResourceelement to the statement, specifying a resource that the statement covers.This works the same as
addResource(IamResource), except you do not need to callIamResource.create().- See Also:
- Resource user guide
-
notResources
IamStatement.Builder notResources(Collection<IamResource> resources)
Configure theNotResourceelement of the statement, specifying that the statement should apply to every resource except the ones listed.This will replace any other not-resources already added to the statement.
- See Also:
- NotResource user guide
-
notResourceIds
IamStatement.Builder notResourceIds(Collection<String> resources)
Configure theNotResourceelement of the statement, specifying that the statement should apply to every resource except the ones listed.This works the same as
notResources(Collection), except you do not need to callIamResource.create()on each resource. This will replace any other not-resources already added to the statement.- See Also:
- NotResource user guide
-
addNotResource
IamStatement.Builder addNotResource(IamResource resource)
Append aNotResourceelement to the statement, specifying that the statement should apply to every resource except the ones listed.- See Also:
- NotResource user guide
-
addNotResource
IamStatement.Builder addNotResource(String resource)
Append aNotResourceelement to the statement, specifying that the statement should apply to every resource except the ones listed.- See Also:
- NotResource user guide
-
conditions
IamStatement.Builder conditions(Collection<IamCondition> conditions)
Configure theConditionelement of the statement, specifying the conditions in which the statement is in effect.This will replace any other conditions already added to the statement.
- See Also:
- Condition user guide
-
addCondition
IamStatement.Builder addCondition(IamCondition condition)
Append aConditionto the statement, specifying a condition in which the statement is in effect.- See Also:
- Condition user guide
-
addCondition
IamStatement.Builder addCondition(Consumer<IamCondition.Builder> condition)
Append aConditionto the statement, specifying a condition in which the statement is in effect.This works the same as
addCondition(IamCondition), except you do not need to specifyIamCondition .builder()orbuild().- See Also:
- Condition user guide
-
addCondition
IamStatement.Builder addCondition(IamConditionOperator operator, IamConditionKey key, String value)
Append aConditionto the statement, specifying a condition in which the statement is in effect.This works the same as
addCondition(IamCondition), except you do not need to specifyIamCondition .create().- See Also:
- Condition user guide
-
addCondition
IamStatement.Builder addCondition(IamConditionOperator operator, String key, String value)
Append aConditionto the statement, specifying a condition in which the statement is in effect.This works the same as
addCondition(IamCondition), except you do not need to specifyIamCondition .create().- See Also:
- Condition user guide
-
addCondition
IamStatement.Builder addCondition(String operator, String key, String values)
Append aConditionto the statement, specifying a condition in which the statement is in effect.This works the same as
addCondition(IamCondition), except you do not need to specifyIamCondition .create().- See Also:
- Condition user guide
-
addConditions
IamStatement.Builder addConditions(IamConditionOperator operator, IamConditionKey key, Collection<String> values)
Append multipleConditions to the statement, specifying conditions in which the statement is in effect.This works the same as
addCondition(IamConditionOperator, IamConditionKey, String)multiple times with the same operator and key, but different values.- See Also:
- Condition user guide
-
addConditions
IamStatement.Builder addConditions(IamConditionOperator operator, String key, Collection<String> values)
Append multipleConditions to the statement, specifying conditions in which the statement is in effect.This works the same as
addCondition(IamConditionOperator, String, String)multiple times with the same operator and key, but different values.- See Also:
- Condition user guide
-
addConditions
IamStatement.Builder addConditions(String operator, String key, Collection<String> values)
Append multipleConditions to the statement, specifying conditions in which the statement is in effect.This works the same as
addCondition(String, String, String)multiple times with the same operator and key, but different values.- See Also:
- Condition user guide
-
-