public static interface IamStatement.Builder extends CopyableBuilder<IamStatement.Builder,IamStatement>
IamStatement.builder()| Modifier and Type | Method and Description |
|---|---|
IamStatement.Builder |
actionIds(Collection<String> actions)
Configure the
Action
element of the statement, specifying the actions that are allowed or denied. |
IamStatement.Builder |
actions(Collection<IamAction> actions)
Configure the
Action
element of the statement, specifying the actions that are allowed or denied. |
IamStatement.Builder |
addAction(IamAction action)
Append an
Action element to this statement, specifying an action that is allowed or denied. |
IamStatement.Builder |
addAction(String action)
Append an
Action element to this statement, specifying an action that is allowed or denied. |
IamStatement.Builder |
addCondition(Consumer<IamCondition.Builder> condition)
Append a
Condition to the statement, specifying a condition in which the statement is in effect. |
IamStatement.Builder |
addCondition(IamCondition condition)
Append a
Condition to the statement, specifying a condition in which the statement is in effect. |
IamStatement.Builder |
addCondition(IamConditionOperator operator,
IamConditionKey key,
String value)
Append a
Condition to the statement, specifying a condition in which the statement is in effect. |
IamStatement.Builder |
addCondition(IamConditionOperator operator,
String key,
String value)
Append a
Condition to the statement, specifying a condition in which the statement is in effect. |
IamStatement.Builder |
addCondition(String operator,
String key,
String values)
Append a
Condition to the statement, specifying a condition in which the statement is in effect. |
IamStatement.Builder |
addConditions(IamConditionOperator operator,
IamConditionKey key,
Collection<String> values)
Append multiple
Conditions to the statement, specifying conditions in which the statement is in effect. |
IamStatement.Builder |
addConditions(IamConditionOperator operator,
String key,
Collection<String> values)
Append multiple
Conditions to the statement, specifying conditions in which the statement is in effect. |
IamStatement.Builder |
addConditions(String operator,
String key,
Collection<String> values)
Append multiple
Conditions to the statement, specifying conditions in which the statement is in effect. |
IamStatement.Builder |
addNotAction(IamAction action)
Append a
NotAction element to this statement, specifying an action that is denied or allowed. |
IamStatement.Builder |
addNotAction(String action)
Append a
NotAction element to this statement, specifying an action that is denied or allowed. |
IamStatement.Builder |
addNotPrincipal(Consumer<IamPrincipal.Builder> notPrincipal)
Append a
NotPrincipal to this statement, specifying that all principals are affected by the policy except the
ones listed. |
IamStatement.Builder |
addNotPrincipal(IamPrincipal notPrincipal)
Append a
NotPrincipal to this statement, specifying that all principals are affected by the policy except the
ones listed. |
IamStatement.Builder |
addNotPrincipal(IamPrincipalType iamPrincipalType,
String notPrincipal)
Append a
NotPrincipal to this statement, specifying that all principals are affected by the policy except the
ones listed. |
IamStatement.Builder |
addNotPrincipal(String iamPrincipalType,
String notPrincipal)
Append a
NotPrincipal to this statement, specifying that all principals are affected by the policy except the
ones listed. |
IamStatement.Builder |
addNotPrincipals(IamPrincipalType iamPrincipalType,
Collection<String> notPrincipals)
Append multiple
NotPrincipals to this statement, specifying that all principals are affected by the policy except the
ones listed. |
IamStatement.Builder |
addNotPrincipals(String iamPrincipalType,
Collection<String> notPrincipals)
Append multiple
NotPrincipals to this statement, specifying that all principals are affected by the policy except the
ones listed. |
IamStatement.Builder |
addNotResource(IamResource resource)
Append a
NotResource element to the statement, specifying that the statement should apply to every resource except the
ones listed. |
IamStatement.Builder |
addNotResource(String resource)
Append a
NotResource element to the statement, specifying that the statement should apply to every resource except the
ones listed. |
IamStatement.Builder |
addPrincipal(Consumer<IamPrincipal.Builder> principal)
Append a
Principal to this statement, specifying a principal that is allowed or denied access to
a resource. |
IamStatement.Builder |
addPrincipal(IamPrincipal principal)
Append a
Principal to this statement, specifying a principal that is allowed or denied access to
a resource. |
IamStatement.Builder |
addPrincipal(IamPrincipalType iamPrincipalType,
String principal)
Append a
Principal to this statement, specifying a principal that is allowed or denied access to
a resource. |
IamStatement.Builder |
addPrincipal(String iamPrincipalType,
String principal)
Append a
Principal to this statement, specifying a principal that is allowed or denied access to
a resource. |
IamStatement.Builder |
addPrincipals(IamPrincipalType iamPrincipalType,
Collection<String> principals)
Append multiple
Principals to this statement, specifying principals that are allowed or denied access to
a resource. |
IamStatement.Builder |
addPrincipals(String iamPrincipalType,
Collection<String> principals)
Append multiple
Principals to this statement, specifying principals that are allowed or denied access to
a resource. |
IamStatement.Builder |
addResource(IamResource resource)
Append a
Resource
element to the statement, specifying a resource that the statement covers. |
IamStatement.Builder |
addResource(String resource)
Append a
Resource
element to the statement, specifying a resource that the statement covers. |
IamStatement.Builder |
conditions(Collection<IamCondition> conditions)
Configure the
Condition element of the statement, specifying the conditions in which the statement is in effect. |
IamStatement.Builder |
effect(IamEffect effect)
Configure the
Effect
element of the policy, specifying whether the statement results in an allow or deny. |
IamStatement.Builder |
effect(String effect)
Configure the
Effect
element of the policy, specifying whether the statement results in an allow or deny. |
IamStatement.Builder |
notActionIds(Collection<String> actions)
Configure the
NotAction element of the statement, specifying actions that are denied or allowed. |
IamStatement.Builder |
notActions(Collection<IamAction> actions)
Configure the
NotAction element of the statement, specifying actions that are denied or allowed. |
IamStatement.Builder |
notPrincipals(Collection<IamPrincipal> notPrincipals)
Configure the
NotPrincipal element of the statement, specifying that all principals are affected by the policy except the
ones listed. |
IamStatement.Builder |
notResourceIds(Collection<String> resources)
Configure the
NotResource element of the statement, specifying that the statement should apply to every resource except the
ones listed. |
IamStatement.Builder |
notResources(Collection<IamResource> resources)
Configure the
NotResource element of the statement, specifying that the statement should apply to every resource except the
ones listed. |
IamStatement.Builder |
principals(Collection<IamPrincipal> principals)
Configure the
Principal element of the statement, specifying the principals that are allowed or denied
access to a resource. |
IamStatement.Builder |
resourceIds(Collection<String> resources)
Configure the
Resource
element of the statement, specifying the resource(s) that the statement covers. |
IamStatement.Builder |
resources(Collection<IamResource> resources)
Configure the
Resource
element of the statement, specifying the resource(s) that the statement covers. |
IamStatement.Builder |
sid(String sid)
Configure the
Sid element of the policy, specifying an identifier for the statement. |
copyapplyMutation, buildIamStatement.Builder sid(String sid)
Sid element of the policy, specifying an identifier for the statement.
IamStatement.Builder effect(IamEffect effect)
Effect
element of the policy, specifying whether the statement results in an allow or deny.
This value is required.
IamEffect,
Effect user
guideIamStatement.Builder effect(String effect)
Effect
element 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 to IamEffect. This value is required.
IamEffect,
Effect user
guideIamStatement.Builder principals(Collection<IamPrincipal> principals)
Principal element 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.
IamPrincipal,
Principal
user guideIamStatement.Builder addPrincipal(IamPrincipal principal)
Principal to this statement, specifying a principal that is allowed or denied access to
a resource.
IamStatement.Builder addPrincipal(Consumer<IamPrincipal.Builder> principal)
Principal to 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 specify IamPrincipal
.builder() or build().
IamStatement.Builder addPrincipal(IamPrincipalType iamPrincipalType, String principal)
Principal to 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 specify IamPrincipal
.create().
IamStatement.Builder addPrincipal(String iamPrincipalType, String principal)
Principal to 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 specify IamPrincipalType.create().
IamStatement.Builder addPrincipals(IamPrincipalType iamPrincipalType, Collection<String> principals)
Principals 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 same
IamPrincipalType.
IamStatement.Builder addPrincipals(String iamPrincipalType, Collection<String> principals)
Principals 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 same
IamPrincipalType.
IamStatement.Builder notPrincipals(Collection<IamPrincipal> notPrincipals)
NotPrincipal element 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 use NotPrincipal. NotPrincipal can only be used with IamEffect.DENY
statements.
This will replace any other not-principals already added to the statement.
IamStatement.Builder addNotPrincipal(IamPrincipal notPrincipal)
NotPrincipal 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 use NotPrincipal. NotPrincipal can only be used with IamEffect.DENY
statements.
IamStatement.Builder addNotPrincipal(Consumer<IamPrincipal.Builder> notPrincipal)
NotPrincipal 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 use NotPrincipal. NotPrincipal can only be used with IamEffect.DENY
statements.
This works the same as addNotPrincipal(IamPrincipal), except you do not need to specify IamPrincipal
.builder() or build().
IamStatement.Builder addNotPrincipal(IamPrincipalType iamPrincipalType, String notPrincipal)
NotPrincipal 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 use NotPrincipal. NotPrincipal can only be used with IamEffect.DENY
statements.
This works the same as addNotPrincipal(IamPrincipal), except you do not need to specify IamPrincipal
.create().
IamStatement.Builder addNotPrincipal(String iamPrincipalType, String notPrincipal)
NotPrincipal 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 use NotPrincipal. NotPrincipal can only be used with IamEffect.DENY
statements.
This works the same as addNotPrincipal(IamPrincipalType, String), except you do not need to specify IamPrincipalType.create().
IamStatement.Builder addNotPrincipals(IamPrincipalType iamPrincipalType, Collection<String> notPrincipals)
NotPrincipals 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 use NotPrincipal. NotPrincipal can only be used with IamEffect.DENY
statements.
This works the same as calling addNotPrincipal(IamPrincipalType, String) multiple times with the same
IamPrincipalType.
IamStatement.Builder addNotPrincipals(String iamPrincipalType, Collection<String> notPrincipals)
NotPrincipals 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 use NotPrincipal. NotPrincipal can only be used with IamEffect.DENY
statements.
This works the same as calling addNotPrincipal(String, String) multiple times with the same
IamPrincipalType.
IamStatement.Builder actions(Collection<IamAction> actions)
Action
element of the statement, specifying the actions that are allowed or denied.
This will replace any other actions already added to the statement.
IamStatement.Builder actionIds(Collection<String> actions)
Action
element of the statement, specifying the actions that are allowed or denied.
This works the same as actions(Collection), except you do not need to call IamAction.create()
on each action. This will replace any other actions already added to the statement.
IamStatement.Builder addAction(IamAction action)
Action element to this statement, specifying an action that is allowed or denied.
IamStatement.Builder addAction(String action)
Action element to this statement, specifying an action that is allowed or denied.
This works the same as addAction(IamAction), except you do not need to call IamAction.create().
IamStatement.Builder notActions(Collection<IamAction> actions)
NotAction element of the statement, specifying actions that are denied or allowed.
This will replace any other not-actions already added to the statement.
IamStatement.Builder notActionIds(Collection<String> actions)
NotAction element of the statement, specifying actions that are denied or allowed.
This works the same as notActions(Collection), except you do not need to call IamAction.create()
on each action. This will replace any other not-actions already added to the statement.
IamStatement.Builder addNotAction(IamAction action)
NotAction element to this statement, specifying an action that is denied or allowed.
IamStatement.Builder addNotAction(String action)
NotAction element to this statement, specifying an action that is denied or allowed.
This works the same as addNotAction(IamAction), except you do not need to call IamAction.create().
IamStatement.Builder resources(Collection<IamResource> resources)
Resource
element of the statement, specifying the resource(s) that the statement covers.
This will replace any other resources already added to the statement.
IamStatement.Builder resourceIds(Collection<String> resources)
Resource
element of the statement, specifying the resource(s) that the statement covers.
This works the same as resources(Collection), except you do not need to call IamResource.create()
on each resource. This will replace any other resources already added to the statement.
IamStatement.Builder addResource(IamResource resource)
Resource
element to the statement, specifying a resource that the statement covers.
IamStatement.Builder addResource(String resource)
Resource
element to the statement, specifying a resource that the statement covers.
This works the same as addResource(IamResource), except you do not need to call IamResource.create().
IamStatement.Builder notResources(Collection<IamResource> resources)
NotResource element 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.
IamStatement.Builder notResourceIds(Collection<String> resources)
NotResource element 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 call IamResource.create()
on each resource. This will replace any other not-resources already added to the statement.
IamStatement.Builder addNotResource(IamResource resource)
NotResource element to the statement, specifying that the statement should apply to every resource except the
ones listed.
IamStatement.Builder addNotResource(String resource)
NotResource element to the statement, specifying that the statement should apply to every resource except the
ones listed.
IamStatement.Builder conditions(Collection<IamCondition> conditions)
Condition element of the statement, specifying the conditions in which the statement is in effect.
This will replace any other conditions already added to the statement.
IamStatement.Builder addCondition(IamCondition condition)
Condition to the statement, specifying a condition in which the statement is in effect.
IamStatement.Builder addCondition(Consumer<IamCondition.Builder> condition)
Condition to 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 specify IamCondition
.builder() or build().
IamStatement.Builder addCondition(IamConditionOperator operator, IamConditionKey key, String value)
Condition to 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 specify IamCondition
.create().
IamStatement.Builder addCondition(IamConditionOperator operator, String key, String value)
Condition to 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 specify IamCondition
.create().
IamStatement.Builder addCondition(String operator, String key, String values)
Condition to 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 specify IamCondition
.create().
IamStatement.Builder addConditions(IamConditionOperator operator, IamConditionKey key, Collection<String> values)
Conditions 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.
IamStatement.Builder addConditions(IamConditionOperator operator, String key, Collection<String> values)
Conditions 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.
IamStatement.Builder addConditions(String operator, String key, Collection<String> values)
Conditions 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.
Copyright © 2023. All rights reserved.