Interface AssumeRootRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AssumeRootRequest.Builder,,AssumeRootRequest> SdkBuilder<AssumeRootRequest.Builder,,AssumeRootRequest> SdkPojo,SdkRequest.Builder,StsRequest.Builder
- Enclosing class:
- AssumeRootRequest
-
Method Summary
Modifier and TypeMethodDescriptiondurationSeconds(Integer durationSeconds) The duration, in seconds, of the privileged session.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) targetPrincipal(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.taskPolicyArn(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.sts.model.StsRequest.Builder
build
-
Method Details
-
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
The identity based policy that scopes the session to the privileged tasks that can be performed. You must 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 must 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 must 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:
-
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
-