Interface CreateWorkloadIdentityTemplateRequest.Builder

  • 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 Description element.

      Forbidden in template definition mode.

      Parameters:
      description - A description of the template. If you omit it, the template carries no description and responses omit the Description element.

      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 to ACCOUNT.

      An ORGANIZATION-scoped template must reference an organization-scoped provider. An ACCOUNT-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. An ORGANIZATION-scoped template belongs to your organization. If you do not include this parameter, it defaults to ACCOUNT.

      An ORGANIZATION-scoped template must reference an organization-scoped provider. An ACCOUNT-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

      The scope the template is created at. An ORGANIZATION-scoped template belongs to your organization. If you do not include this parameter, it defaults to ACCOUNT.

      An ORGANIZATION-scoped template must reference an organization-scoped provider. An ACCOUNT-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. An ORGANIZATION-scoped template belongs to your organization. If you do not include this parameter, it defaults to ACCOUNT.

      An ORGANIZATION-scoped template must reference an organization-scoped provider. An ACCOUNT-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

      CreateWorkloadIdentityTemplateRequest.Builder attestationPolicy(String 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.

      Tags is 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 with InvalidInputException. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

      Tags is 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.

      Tags is 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 with InvalidInputException. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

      Tags is 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.

      Tags is 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.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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 the WorkloadIdentityTemplateDefinitionType.Builder avoiding the need to create one manually via WorkloadIdentityTemplateDefinitionType.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to templateDefinition(WorkloadIdentityTemplateDefinitionType).

      Parameters:
      templateDefinition - a consumer that will call methods on WorkloadIdentityTemplateDefinitionType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.