static class S3Backend.AssumeRoleBase extends Object
Base class for configuring assume roles with or without web identity.
| Modifiers | Name | Description |
|---|---|---|
protected ConfigCacheSafeOperations |
ccso |
|
protected MapProperty<String, Object> |
values |
| Type | Name and description |
|---|---|
Provider<java.util.Map<String, TokenValue>> |
tokenProvider |
| Constructor and description |
|---|
protected AssumeRoleBase
(Project tempProjectRef, String toplevelToken) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
policyARNs(Object[] items)Sets a token called assume_role_policy_arns. |
|
void |
setDuration(String value)Sets the duration for assuming the role. |
|
void |
setPolicy(java.util.Map<String, ?> policyValues)Sets the policy for assuming the role |
|
void |
setPolicy(Provider<String> policy)Sets a token called assume_role_policy. |
|
void |
setPolicy(String jsonPolicy)Sets a token called assume_role_policy. |
|
void |
setPolicyARNs(Iterable<Object> items)Sets a token called assume_role_policy_arns. |
|
void |
setRoleArn(Object value)Sets a token called role_arn. |
|
void |
setSessionName(Object value)Sets a token called session_name. |
Sets a token called assume_role_policy_arns.
value - ARNs.Sets the duration for assuming the role.
value - See https://developer.hashicorp.com/terraform/language/backend/s3#duration for formats.Sets the policy for assuming the role
value - Policy in the form of a map. Sets a token called assume_role_policy.
value - Policy as a JSON string. Sets a token called assume_role_policy.
jsonPolicy - Policy as a JSON string. Sets a token called assume_role_policy_arns.
value - ARNs. Sets a token called role_arn.
value - AWS ARN for assumed role. Sets a token called session_name.
value - AWS ARN for assumed role.Groovy Documentation