Package | Description |
---|---|
com.amazonaws.auth.policy |
Classes for creating custom AWS access control policies.
|
com.amazonaws.auth.policy.conditions |
Collection of AWS access control policy conditions.
|
Modifier and Type | Method and Description |
---|---|
Condition |
Condition.withConditionKey(String key)
Fluent version of
setConditionKey(String) |
Condition |
Condition.withType(String type)
Fluent version of
setType(String) |
Condition |
Condition.withValues(List<String> values)
Fluent version of
setValues(List) |
Condition |
Condition.withValues(String... values)
Fluent version of
setValues(List) |
Modifier and Type | Method and Description |
---|---|
List<Condition> |
Statement.getConditions()
Returns the conditions associated with this policy statement.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
Statement.setConditions(List<Condition> conditions)
Sets the conditions associated with this policy statement.
|
Modifier and Type | Class and Description |
---|---|
class |
ArnCondition
AWS access control policy condition that allows an access control statement
to be conditionally applied based on the comparison of an Amazon Resource
Name (ARN).
|
class |
BooleanCondition
AWS access control policy condition that allows an access control statement to be
conditionally applied based on a comparison of boolean values.
|
class |
DateCondition
AWS access control policy condition that allows an access control statement
to be conditionally applied based on the comparison of the current time at
which a request is received, and a specific date.
|
class |
IpAddressCondition
AWS access control policy condition that allows an access control statement
to be conditionally applied based on the comparison of the the incoming
source IP address at the time of a request against a CIDR IP range.
|
class |
NumericCondition
AWS access control policy condition that allows an access control statement to be
conditionally applied based on a numeric comparison.
|
class |
StringCondition
String conditions let you constrain AWS access control policy statements
using string matching rules.
|
Modifier and Type | Method and Description |
---|---|
static Condition |
ConditionFactory.newRefererCondition(StringCondition.StringComparisonType comparisonType,
String value)
Constructs a new access control policy condition that tests the incoming
request's referer field against the specified value, using the specified
comparison type.
|
static Condition |
ConditionFactory.newSecureTransportCondition()
Constructs a new access control policy condition that tests if the
incoming request was sent over a secure transport (HTTPS).
|
static Condition |
ConditionFactory.newSourceArnCondition(String arnPattern)
Constructs a new access policy condition that compares the Amazon
Resource Name (ARN) of the source of an AWS resource that is modifying
another AWS resource with the specified pattern.
|
static Condition |
ConditionFactory.newUserAgentCondition(StringCondition.StringComparisonType comparisonType,
String value)
Constructs a new access control policy condition that tests the incoming
request's user agent field against the specified value, using the
specified comparison type.
|
Copyright © 2022. All rights reserved.