Class KeyPairState.Builder

  • Enclosing class:
    KeyPairState

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

      • Builder

        public Builder()
    • Method Detail

      • arn

        public KeyPairState.Builder arn​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the Lightsail key pair.
        Returns:
        builder
      • arn

        public KeyPairState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the Lightsail key pair.
        Returns:
        builder
      • encryptedFingerprint

        public KeyPairState.Builder encryptedFingerprint​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> encryptedFingerprint)
        Parameters:
        encryptedFingerprint - MD5 public key fingerprint for the encrypted private key.
        Returns:
        builder
      • encryptedFingerprint

        public KeyPairState.Builder encryptedFingerprint​(java.lang.String encryptedFingerprint)
        Parameters:
        encryptedFingerprint - MD5 public key fingerprint for the encrypted private key.
        Returns:
        builder
      • encryptedPrivateKey

        public KeyPairState.Builder encryptedPrivateKey​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> encryptedPrivateKey)
        Parameters:
        encryptedPrivateKey - Private key material, base 64 encoded and encrypted with the given `pgpKey`. This is only populated when creating a new key and `pgpKey` is supplied.
        Returns:
        builder
      • encryptedPrivateKey

        public KeyPairState.Builder encryptedPrivateKey​(java.lang.String encryptedPrivateKey)
        Parameters:
        encryptedPrivateKey - Private key material, base 64 encoded and encrypted with the given `pgpKey`. This is only populated when creating a new key and `pgpKey` is supplied.
        Returns:
        builder
      • fingerprint

        public KeyPairState.Builder fingerprint​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> fingerprint)
        Parameters:
        fingerprint - MD5 public key fingerprint as specified in section 4 of RFC 4716.
        Returns:
        builder
      • fingerprint

        public KeyPairState.Builder fingerprint​(java.lang.String fingerprint)
        Parameters:
        fingerprint - MD5 public key fingerprint as specified in section 4 of RFC 4716.
        Returns:
        builder
      • name

        public KeyPairState.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 KeyPairState.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 KeyPairState.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 KeyPairState.Builder namePrefix​(java.lang.String namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • pgpKey

        public KeyPairState.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 KeyPairState.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
      • privateKey

        public KeyPairState.Builder privateKey​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> privateKey)
        Parameters:
        privateKey - Private key, base64 encoded. This is only populated when creating a new key, and when no `pgpKey` is provided.
        Returns:
        builder
      • privateKey

        public KeyPairState.Builder privateKey​(java.lang.String privateKey)
        Parameters:
        privateKey - Private key, base64 encoded. This is only populated when creating a new key, and when no `pgpKey` is provided.
        Returns:
        builder
      • publicKey

        public KeyPairState.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 KeyPairState.Builder publicKey​(java.lang.String publicKey)
        Parameters:
        publicKey - Public key material. This public key will be imported into Lightsail.
        Returns:
        builder
      • region

        public KeyPairState.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 KeyPairState.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 KeyPairState.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 KeyPairState.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
      • tagsAll

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

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