Class KeyPairArgs.Builder

  • Enclosing class:
    KeyPairArgs

    public static final class KeyPairArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public KeyPairArgs.Builder name​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name of the Lightsail Key Pair. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
        Returns:
        builder
      • name

        public KeyPairArgs.Builder name​(java.lang.String name)
        Parameters:
        name - Name of the Lightsail Key Pair. If omitted, the provider will assign a random, unique name. Conflicts with `namePrefix`.
        Returns:
        builder
      • namePrefix

        public KeyPairArgs.Builder namePrefix​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • namePrefix

        public KeyPairArgs.Builder namePrefix​(java.lang.String namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • pgpKey

        public KeyPairArgs.Builder pgpKey​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> pgpKey)
        Parameters:
        pgpKey - PGP key to encrypt the resulting private key material. Only used when creating a new key pair.
        Returns:
        builder
      • pgpKey

        public KeyPairArgs.Builder pgpKey​(java.lang.String pgpKey)
        Parameters:
        pgpKey - PGP key to encrypt the resulting private key material. Only used when creating a new key pair.
        Returns:
        builder
      • publicKey

        public KeyPairArgs.Builder publicKey​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> publicKey)
        Parameters:
        publicKey - Public key material. This public key will be imported into Lightsail.
        Returns:
        builder
      • publicKey

        public KeyPairArgs.Builder publicKey​(java.lang.String publicKey)
        Parameters:
        publicKey - Public key material. This public key will be imported into Lightsail.
        Returns:
        builder
      • region

        public KeyPairArgs.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 KeyPairArgs.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
      • tags

        public KeyPairArgs.Builder tags​(@Nullable
                                        com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. > **Note:** A PGP key is not required, however it is strongly encouraged. Without a PGP key, the private key material will be stored in state unencrypted. `pgpKey` is ignored if `publicKey` is supplied.
        Returns:
        builder
      • tags

        public KeyPairArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. > **Note:** A PGP key is not required, however it is strongly encouraged. Without a PGP key, the private key material will be stored in state unencrypted. `pgpKey` is ignored if `publicKey` is supplied.
        Returns:
        builder