Interface AssumeRootRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AssumeRootRequest.Builder,AssumeRootRequest>,SdkBuilder<AssumeRootRequest.Builder,AssumeRootRequest>,SdkPojo,SdkRequest.Builder,StsRequest.Builder
- Enclosing class:
- AssumeRootRequest
@Mutable @NotThreadSafe public static interface AssumeRootRequest.Builder extends StsRequest.Builder, SdkPojo, CopyableBuilder<AssumeRootRequest.Builder,AssumeRootRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AssumeRootRequest.BuilderdurationSeconds(Integer durationSeconds)The duration, in seconds, of the privileged session.AssumeRootRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)AssumeRootRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)AssumeRootRequest.BuildertargetPrincipal(String targetPrincipal)The member account principal ARN or account ID.default AssumeRootRequest.BuildertaskPolicyArn(Consumer<PolicyDescriptorType.Builder> taskPolicyArn)The identity based policy that scopes the session to the privileged tasks that can be performed.AssumeRootRequest.BuildertaskPolicyArn(PolicyDescriptorType taskPolicyArn)The identity based policy that scopes the session to the privileged tasks that can be performed.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.services.sts.model.StsRequest.Builder
build
-
-
-
-
Method Detail
-
targetPrincipal
AssumeRootRequest.Builder targetPrincipal(String targetPrincipal)
The member account principal ARN or account ID.
- Parameters:
targetPrincipal- The member account principal ARN or account ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskPolicyArn
AssumeRootRequest.Builder taskPolicyArn(PolicyDescriptorType taskPolicyArn)
The identity based policy that scopes the session to the privileged tasks that can be performed. You can use one of following Amazon Web Services managed policies to scope root session actions.
- Parameters:
taskPolicyArn- The identity based policy that scopes the session to the privileged tasks that can be performed. You can use one of following Amazon Web Services managed policies to scope root session actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskPolicyArn
default AssumeRootRequest.Builder taskPolicyArn(Consumer<PolicyDescriptorType.Builder> taskPolicyArn)
The identity based policy that scopes the session to the privileged tasks that can be performed. You can use one of following Amazon Web Services managed policies to scope root session actions.
PolicyDescriptorType.Builderavoiding the need to create one manually viaPolicyDescriptorType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totaskPolicyArn(PolicyDescriptorType).- Parameters:
taskPolicyArn- a consumer that will call methods onPolicyDescriptorType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
taskPolicyArn(PolicyDescriptorType)
-
durationSeconds
AssumeRootRequest.Builder durationSeconds(Integer durationSeconds)
The duration, in seconds, of the privileged session. The value can range from 0 seconds up to the maximum session duration of 900 seconds (15 minutes). If you specify a value higher than this setting, the operation fails.
By default, the value is set to
900seconds.- Parameters:
durationSeconds- The duration, in seconds, of the privileged session. The value can range from 0 seconds up to the maximum session duration of 900 seconds (15 minutes). If you specify a value higher than this setting, the operation fails.By default, the value is set to
900seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AssumeRootRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
AssumeRootRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-