Interface LaunchTemplateTagSpecificationRequest.Builder

    • Method Detail

      • resourceType

        LaunchTemplateTagSpecificationRequest.Builder resourceType​(String resourceType)

        The type of resource to tag.

        Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you can specify tags for the following resource types only: instance | volume | elastic-gpu | network-interface | spot-instances-request. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include an Elastic GPU.

        To tag a resource after it has been created, see CreateTags.

        Parameters:
        resourceType - The type of resource to tag.

        Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you can specify tags for the following resource types only: instance | volume | elastic-gpu | network-interface | spot-instances-request. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include an Elastic GPU.

        To tag a resource after it has been created, see CreateTags.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceType, ResourceType
      • resourceType

        LaunchTemplateTagSpecificationRequest.Builder resourceType​(ResourceType resourceType)

        The type of resource to tag.

        Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you can specify tags for the following resource types only: instance | volume | elastic-gpu | network-interface | spot-instances-request. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include an Elastic GPU.

        To tag a resource after it has been created, see CreateTags.

        Parameters:
        resourceType - The type of resource to tag.

        Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you can specify tags for the following resource types only: instance | volume | elastic-gpu | network-interface | spot-instances-request. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include an Elastic GPU.

        To tag a resource after it has been created, see CreateTags.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceType, ResourceType
      • tags

        LaunchTemplateTagSpecificationRequest.Builder tags​(Tag... tags)

        The tags to apply to the resource.

        Parameters:
        tags - The tags to apply to the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.