Interface CreateWorkloadIdentityTemplateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateWorkloadIdentityTemplateRequest.Builder,,CreateWorkloadIdentityTemplateRequest> IamRequest.Builder,SdkBuilder<CreateWorkloadIdentityTemplateRequest.Builder,,CreateWorkloadIdentityTemplateRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateWorkloadIdentityTemplateRequest
-
Method Summary
Modifier and TypeMethodDescriptionattestationPolicy(String attestationPolicy) The attestation policy that decides which workloads can be attested through the template.description(String description) A description of the template.The name of the template.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.pathPattern(String pathPattern) The pattern that workload identifiers are rendered from.pathPrefix(String pathPrefix) The namespace between the provider's naming root and the rendered pattern.resourceScope(String resourceScope) The scope the template is created at.resourceScope(WorkloadIdentityResourceScopeType resourceScope) The scope the template is created at.tags(Collection<Tag> tags) A list of tags that you want to attach to the new template.tags(Consumer<Tag.Builder>... tags) A list of tags that you want to attach to the new template.A list of tags that you want to attach to the new template.templateDefinition(Consumer<WorkloadIdentityTemplateDefinitionType.Builder> templateDefinition) The service-owned definition to render the template from, carrying only the values that definition leaves open.templateDefinition(WorkloadIdentityTemplateDefinitionType templateDefinition) The service-owned definition to render the template from, carrying only the values that definition leaves open.workloadIdentityProviderArn(String workloadIdentityProviderArn) The Amazon Resource Name (ARN) of the workload identity provider to create the template under.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.iam.model.IamRequest.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
-
name
The name of the template. It is the leaf of the template's own resource ARN and it does not appear in any rendered identifier.
Required in direct authoring mode, and forbidden in template definition mode.
- Parameters:
name- The name of the template. It is the leaf of the template's own resource ARN and it does not appear in any rendered identifier.Required in direct authoring mode, and forbidden in template definition mode.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the template. If you omit it, the template carries no description and responses omit the
Descriptionelement.Forbidden in template definition mode.
- Parameters:
description- A description of the template. If you omit it, the template carries no description and responses omit theDescriptionelement.Forbidden in template definition mode.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceScope
The scope the template is created at. An
ORGANIZATION-scoped template belongs to your organization. If you do not include this parameter, it defaults toACCOUNT.An
ORGANIZATION-scoped template must reference an organization-scoped provider. AnACCOUNT-scoped template can reference an account-scoped provider in your account or an organization-scoped provider in your organization.Forbidden in template definition mode.
- Parameters:
resourceScope- The scope the template is created at. AnORGANIZATION-scoped template belongs to your organization. If you do not include this parameter, it defaults toACCOUNT.An
ORGANIZATION-scoped template must reference an organization-scoped provider. AnACCOUNT-scoped template can reference an account-scoped provider in your account or an organization-scoped provider in your organization.Forbidden in template definition mode.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceScope
CreateWorkloadIdentityTemplateRequest.Builder resourceScope(WorkloadIdentityResourceScopeType resourceScope) The scope the template is created at. An
ORGANIZATION-scoped template belongs to your organization. If you do not include this parameter, it defaults toACCOUNT.An
ORGANIZATION-scoped template must reference an organization-scoped provider. AnACCOUNT-scoped template can reference an account-scoped provider in your account or an organization-scoped provider in your organization.Forbidden in template definition mode.
- Parameters:
resourceScope- The scope the template is created at. AnORGANIZATION-scoped template belongs to your organization. If you do not include this parameter, it defaults toACCOUNT.An
ORGANIZATION-scoped template must reference an organization-scoped provider. AnACCOUNT-scoped template can reference an account-scoped provider in your account or an organization-scoped provider in your organization.Forbidden in template definition mode.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
workloadIdentityProviderArn
CreateWorkloadIdentityTemplateRequest.Builder workloadIdentityProviderArn(String workloadIdentityProviderArn) The Amazon Resource Name (ARN) of the workload identity provider to create the template under.
Required in direct authoring mode, and forbidden in template definition mode, where the service renders it from the definition.
- Parameters:
workloadIdentityProviderArn- The Amazon Resource Name (ARN) of the workload identity provider to create the template under.Required in direct authoring mode, and forbidden in template definition mode, where the service renders it from the definition.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pathPrefix
The namespace between the provider's naming root and the rendered pattern. Segments only, with no leading slash, no trailing slash and no empty segment.
Forbidden in template definition mode.
- Parameters:
pathPrefix- The namespace between the provider's naming root and the rendered pattern. Segments only, with no leading slash, no trailing slash and no empty segment.Forbidden in template definition mode.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pathPattern
The pattern that workload identifiers are rendered from. For the pattern grammar, and for the checks the regular expression cannot express, see WorkloadIdentityTemplatePathPatternType.
Required in direct authoring mode, and forbidden in template definition mode, where the service renders it from the definition.
- Parameters:
pathPattern- The pattern that workload identifiers are rendered from. For the pattern grammar, and for the checks the regular expression cannot express, see WorkloadIdentityTemplatePathPatternType.Required in direct authoring mode, and forbidden in template definition mode, where the service renders it from the definition.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attestationPolicy
The attestation policy that decides which workloads can be attested through the template. A policy supplied here is equivalent to one supplied later by PutWorkloadIdentityTemplateAttestationPolicy.
Forbidden in template definition mode, where the service renders the policy from the definition.
- Parameters:
attestationPolicy- The attestation policy that decides which workloads can be attested through the template. A policy supplied here is equivalent to one supplied later by PutWorkloadIdentityTemplateAttestationPolicy.Forbidden in template definition mode, where the service renders the policy from the definition.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags that you want to attach to the new template. Each tag consists of a key name and an associated value. Tag keys are case sensitive, and two tag keys that differ only in case are rejected with
InvalidInputException. For more information about tagging, see Tagging IAM resources in the IAM User Guide.Tagsis accepted in both modes. A template definition never carries tags of its own.If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.
- Parameters:
tags- A list of tags that you want to attach to the new template. Each tag consists of a key name and an associated value. Tag keys are case sensitive, and two tag keys that differ only in case are rejected withInvalidInputException. For more information about tagging, see Tagging IAM resources in the IAM User Guide.Tagsis accepted in both modes. A template definition never carries tags of its own.If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags that you want to attach to the new template. Each tag consists of a key name and an associated value. Tag keys are case sensitive, and two tag keys that differ only in case are rejected with
InvalidInputException. For more information about tagging, see Tagging IAM resources in the IAM User Guide.Tagsis accepted in both modes. A template definition never carries tags of its own.If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.
- Parameters:
tags- A list of tags that you want to attach to the new template. Each tag consists of a key name and an associated value. Tag keys are case sensitive, and two tag keys that differ only in case are rejected withInvalidInputException. For more information about tagging, see Tagging IAM resources in the IAM User Guide.Tagsis accepted in both modes. A template definition never carries tags of its own.If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags that you want to attach to the new template. Each tag consists of a key name and an associated value. Tag keys are case sensitive, and two tag keys that differ only in case are rejected with
InvalidInputException. For more information about tagging, see Tagging IAM resources in the IAM User Guide.Tagsis accepted in both modes. A template definition never carries tags of its own. This is a convenience method that creates an instance of theIf any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.
Tag.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:
-
templateDefinition
CreateWorkloadIdentityTemplateRequest.Builder templateDefinition(WorkloadIdentityTemplateDefinitionType templateDefinition) The service-owned definition to render the template from, carrying only the values that definition leaves open. For the values a definition leaves open and the name of each, see WorkloadIdentityTemplateDefinitionType.
Supplying this parameter selects template definition mode. It is forbidden in direct authoring mode.
- Parameters:
templateDefinition- The service-owned definition to render the template from, carrying only the values that definition leaves open. For the values a definition leaves open and the name of each, see WorkloadIdentityTemplateDefinitionType.Supplying this parameter selects template definition mode. It is forbidden in direct authoring mode.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateDefinition
default CreateWorkloadIdentityTemplateRequest.Builder templateDefinition(Consumer<WorkloadIdentityTemplateDefinitionType.Builder> templateDefinition) The service-owned definition to render the template from, carrying only the values that definition leaves open. For the values a definition leaves open and the name of each, see WorkloadIdentityTemplateDefinitionType.
Supplying this parameter selects template definition mode. It is forbidden in direct authoring mode.
This is a convenience method that creates an instance of theWorkloadIdentityTemplateDefinitionType.Builderavoiding the need to create one manually viaWorkloadIdentityTemplateDefinitionType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemplateDefinition(WorkloadIdentityTemplateDefinitionType).- Parameters:
templateDefinition- a consumer that will call methods onWorkloadIdentityTemplateDefinitionType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateWorkloadIdentityTemplateRequest.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
CreateWorkloadIdentityTemplateRequest.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.
-