Interface IssueWorkloadIdentityContextResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<IssueWorkloadIdentityContextResponse.Builder,,IssueWorkloadIdentityContextResponse> SdkBuilder<IssueWorkloadIdentityContextResponse.Builder,,IssueWorkloadIdentityContextResponse> SdkPojo,SdkResponse.Builder,StsResponse.Builder
- Enclosing class:
IssueWorkloadIdentityContextResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services service principal that can pass the context toAssumeRole.expiration(Instant expiration) The date and time, in UTC, after whichAssumeRoleno longer accepts the context.providedContext(Consumer<ProvidedContext.Builder> providedContext) The context to pass to AssumeRole inProvidedContexts.providedContext(ProvidedContext providedContext) The context to pass to AssumeRole inProvidedContexts.sessionExpiration(Instant sessionExpiration) The latest date and time, in UTC, at which a role session from this context can end.The identifier of the workload, up to 256 characters.Methods 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.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.sts.model.StsResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
providedContext
The context to pass to AssumeRole in
ProvidedContexts.ProviderArnis the ARN of the workload identity provider that issued the context.ContextAssertionis the signed and encrypted context. It is present only if the request specifiedTargetRoleArn.Pass the context as the only entry in
ProvidedContexts. Treat the context assertion like a credential until it expires.- Parameters:
providedContext- The context to pass to AssumeRole inProvidedContexts.ProviderArnis the ARN of the workload identity provider that issued the context.ContextAssertionis the signed and encrypted context. It is present only if the request specifiedTargetRoleArn.Pass the context as the only entry in
ProvidedContexts. Treat the context assertion like a credential until it expires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
providedContext
default IssueWorkloadIdentityContextResponse.Builder providedContext(Consumer<ProvidedContext.Builder> providedContext) The context to pass to AssumeRole in
ProvidedContexts.ProviderArnis the ARN of the workload identity provider that issued the context.ContextAssertionis the signed and encrypted context. It is present only if the request specifiedTargetRoleArn.Pass the context as the only entry in
This is a convenience method that creates an instance of theProvidedContexts. Treat the context assertion like a credential until it expires.ProvidedContext.Builderavoiding the need to create one manually viaProvidedContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprovidedContext(ProvidedContext).- Parameters:
providedContext- a consumer that will call methods onProvidedContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subject
The identifier of the workload, up to 256 characters. For a workload identity provider that uses the SPIFFE naming scheme, this is the SPIFFE ID of the workload, for example
spiffe://example.org/payments/checkout. A role session from this context carries this value as the identity of the workload.- Parameters:
subject- The identifier of the workload, up to 256 characters. For a workload identity provider that uses the SPIFFE naming scheme, this is the SPIFFE ID of the workload, for examplespiffe://example.org/payments/checkout. A role session from this context carries this value as the identity of the workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
audience
The Amazon Web Services service principal that can pass the context to
AssumeRole. This is the service principal of the caller. Present only if the request specifiedTargetRoleArn.- Parameters:
audience- The Amazon Web Services service principal that can pass the context toAssumeRole. This is the service principal of the caller. Present only if the request specifiedTargetRoleArn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiration
The date and time, in UTC, after which
AssumeRoleno longer accepts the context. Present only if the request specifiedTargetRoleArn.- Parameters:
expiration- The date and time, in UTC, after whichAssumeRoleno longer accepts the context. Present only if the request specifiedTargetRoleArn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionExpiration
The latest date and time, in UTC, at which a role session from this context can end. Present only if the request specified both
TargetRoleArnandSessionDurationSeconds.- Parameters:
sessionExpiration- The latest date and time, in UTC, at which a role session from this context can end. Present only if the request specified bothTargetRoleArnandSessionDurationSeconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-