Class EnvironmentEC2State.Builder

  • Enclosing class:
    EnvironmentEC2State

    public static final class EnvironmentEC2State.Builder
    extends java.lang.Object
    • Method Detail

      • arn

        public EnvironmentEC2State.Builder arn​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - The ARN of the environment.
        Returns:
        builder
      • arn

        public EnvironmentEC2State.Builder arn​(java.lang.String arn)
        Parameters:
        arn - The ARN of the environment.
        Returns:
        builder
      • automaticStopTimeMinutes

        public EnvironmentEC2State.Builder automaticStopTimeMinutes​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.Integer> automaticStopTimeMinutes)
        Parameters:
        automaticStopTimeMinutes - The number of minutes until the running instance is shut down after the environment has last been used.
        Returns:
        builder
      • automaticStopTimeMinutes

        public EnvironmentEC2State.Builder automaticStopTimeMinutes​(java.lang.Integer automaticStopTimeMinutes)
        Parameters:
        automaticStopTimeMinutes - The number of minutes until the running instance is shut down after the environment has last been used.
        Returns:
        builder
      • connectionType

        public EnvironmentEC2State.Builder connectionType​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> connectionType)
        Parameters:
        connectionType - The connection type used for connecting to an Amazon EC2 environment. Valid values are `CONNECT_SSH` and `CONNECT_SSM`. For more information please refer [AWS documentation for Cloud9](https://docs.aws.amazon.com/cloud9/latest/user-guide/ec2-ssm.html).
        Returns:
        builder
      • connectionType

        public EnvironmentEC2State.Builder connectionType​(java.lang.String connectionType)
        Parameters:
        connectionType - The connection type used for connecting to an Amazon EC2 environment. Valid values are `CONNECT_SSH` and `CONNECT_SSM`. For more information please refer [AWS documentation for Cloud9](https://docs.aws.amazon.com/cloud9/latest/user-guide/ec2-ssm.html).
        Returns:
        builder
      • description

        public EnvironmentEC2State.Builder description​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - The description of the environment.
        Returns:
        builder
      • description

        public EnvironmentEC2State.Builder description​(java.lang.String description)
        Parameters:
        description - The description of the environment.
        Returns:
        builder
      • imageId

        public EnvironmentEC2State.Builder imageId​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> imageId)
        Parameters:
        imageId - Identifier for the AMI that's used to create the EC2 instance. Valid values are * `amazonlinux-2-x86_64` * `amazonlinux-2023-x86_64` * `ubuntu-18.04-x86_64` * `ubuntu-22.04-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2023-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64`
        Returns:
        builder
      • imageId

        public EnvironmentEC2State.Builder imageId​(java.lang.String imageId)
        Parameters:
        imageId - Identifier for the AMI that's used to create the EC2 instance. Valid values are * `amazonlinux-2-x86_64` * `amazonlinux-2023-x86_64` * `ubuntu-18.04-x86_64` * `ubuntu-22.04-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2023-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64` * `resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64`
        Returns:
        builder
      • instanceType

        public EnvironmentEC2State.Builder instanceType​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> instanceType)
        Parameters:
        instanceType - The type of instance to connect to the environment, e.g., `t2.micro`.
        Returns:
        builder
      • instanceType

        public EnvironmentEC2State.Builder instanceType​(java.lang.String instanceType)
        Parameters:
        instanceType - The type of instance to connect to the environment, e.g., `t2.micro`.
        Returns:
        builder
      • name

        public EnvironmentEC2State.Builder name​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The name of the environment.
        Returns:
        builder
      • name

        public EnvironmentEC2State.Builder name​(java.lang.String name)
        Parameters:
        name - The name of the environment.
        Returns:
        builder
      • ownerArn

        public EnvironmentEC2State.Builder ownerArn​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> ownerArn)
        Parameters:
        ownerArn - The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment's creator.
        Returns:
        builder
      • ownerArn

        public EnvironmentEC2State.Builder ownerArn​(java.lang.String ownerArn)
        Parameters:
        ownerArn - The ARN of the environment owner. This can be ARN of any AWS IAM principal. Defaults to the environment's creator.
        Returns:
        builder
      • region

        public EnvironmentEC2State.Builder region​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public EnvironmentEC2State.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • subnetId

        public EnvironmentEC2State.Builder subnetId​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> subnetId)
        Parameters:
        subnetId - The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
        Returns:
        builder
      • subnetId

        public EnvironmentEC2State.Builder subnetId​(java.lang.String subnetId)
        Parameters:
        subnetId - The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
        Returns:
        builder
      • tags

        public EnvironmentEC2State.Builder tags​(@Nullable
                                                com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public EnvironmentEC2State.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        public EnvironmentEC2State.Builder tagsAll​(@Nullable
                                                   com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public EnvironmentEC2State.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • type

        public EnvironmentEC2State.Builder type​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> type)
        Parameters:
        type - The type of the environment (e.g., `ssh` or `ec2`).
        Returns:
        builder
      • type

        public EnvironmentEC2State.Builder type​(java.lang.String type)
        Parameters:
        type - The type of the environment (e.g., `ssh` or `ec2`).
        Returns:
        builder