Interface CreateProfileRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateProfileRequest.Builder,,CreateProfileRequest> RolesAnywhereRequest.Builder,SdkBuilder<CreateProfileRequest.Builder,,CreateProfileRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateProfileRequest
-
Method Summary
Modifier and TypeMethodDescriptionacceptRoleSessionName(Boolean acceptRoleSessionName) Used to determine if a custom role session name will be accepted in a temporary credential request.durationSeconds(Integer durationSeconds) Used to determine how long sessions vended using this profile are valid for.Specifies whether the profile is enabled.managedPolicyArns(String... managedPolicyArns) A list of managed policy ARNs that apply to the vended session credentials.managedPolicyArns(Collection<String> managedPolicyArns) A list of managed policy ARNs that apply to the vended session credentials.The name of the profile.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.requireInstanceProperties(Boolean requireInstanceProperties) Specifies whether instance properties are required in temporary credential requests with this profile.A list of IAM roles that this profile can assume in a temporary credential request.roleArns(Collection<String> roleArns) A list of IAM roles that this profile can assume in a temporary credential request.sessionPolicy(String sessionPolicy) A session policy that applies to the trust boundary of the vended session credentials.tags(Collection<Tag> tags) The tags to attach to the profile.tags(Consumer<Tag.Builder>... tags) The tags to attach to the profile.The tags to attach to the profile.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.services.rolesanywhere.model.RolesAnywhereRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
acceptRoleSessionName
Used to determine if a custom role session name will be accepted in a temporary credential request.
- Parameters:
acceptRoleSessionName- Used to determine if a custom role session name will be accepted in a temporary credential request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationSeconds
Used to determine how long sessions vended using this profile are valid for. See the
Expirationsection of the CreateSession API documentation page for more details. In requests, if this value is not provided, the default value will be 3600.- Parameters:
durationSeconds- Used to determine how long sessions vended using this profile are valid for. See theExpirationsection of the CreateSession API documentation page for more details. In requests, if this value is not provided, the default value will be 3600.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enabled
Specifies whether the profile is enabled.
- Parameters:
enabled- Specifies whether the profile is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedPolicyArns
A list of managed policy ARNs that apply to the vended session credentials.
- Parameters:
managedPolicyArns- A list of managed policy ARNs that apply to the vended session credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedPolicyArns
A list of managed policy ARNs that apply to the vended session credentials.
- Parameters:
managedPolicyArns- A list of managed policy ARNs that apply to the vended session credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the profile.
- Parameters:
name- The name of the profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requireInstanceProperties
Specifies whether instance properties are required in temporary credential requests with this profile.
- Parameters:
requireInstanceProperties- Specifies whether instance properties are required in temporary credential requests with this profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArns
A list of IAM roles that this profile can assume in a temporary credential request.
- Parameters:
roleArns- A list of IAM roles that this profile can assume in a temporary credential request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArns
A list of IAM roles that this profile can assume in a temporary credential request.
- Parameters:
roleArns- A list of IAM roles that this profile can assume in a temporary credential request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionPolicy
A session policy that applies to the trust boundary of the vended session credentials.
- Parameters:
sessionPolicy- A session policy that applies to the trust boundary of the vended session credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to attach to the profile.
- Parameters:
tags- The tags to attach to the profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to attach to the profile.
- Parameters:
tags- The tags to attach to the profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to attach to the profile.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateProfileRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateProfileRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-