libZSservicesZSamazonka-secretsmanagerZSamazonka-secretsmanager
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SecretsManager.ReplicateSecretToRegions

Description

Converts an existing secret to a multi-Region secret and begins replication the secret to a list of new regions.

Synopsis

Creating a Request

data ReplicateSecretToRegions Source #

See: newReplicateSecretToRegions smart constructor.

Constructors

ReplicateSecretToRegions' 

Fields

Instances

Instances details
Eq ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

Read ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

Show ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

Generic ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

Associated Types

type Rep ReplicateSecretToRegions :: Type -> Type #

NFData ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

Hashable ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

ToJSON ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

AWSRequest ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

ToHeaders ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

ToPath ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

ToQuery ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

type Rep ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

type Rep ReplicateSecretToRegions = D1 ('MetaData "ReplicateSecretToRegions" "Amazonka.SecretsManager.ReplicateSecretToRegions" "libZSservicesZSamazonka-secretsmanagerZSamazonka-secretsmanager" 'False) (C1 ('MetaCons "ReplicateSecretToRegions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "forceOverwriteReplicaSecret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "secretId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "addReplicaRegions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty ReplicaRegionType)))))
type AWSResponse ReplicateSecretToRegions Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

newReplicateSecretToRegions Source #

Create a value of ReplicateSecretToRegions with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:forceOverwriteReplicaSecret:ReplicateSecretToRegions', replicateSecretToRegions_forceOverwriteReplicaSecret - (Optional) If set, Secrets Manager replication overwrites a secret with the same name in the destination region.

$sel:secretId:ReplicateSecretToRegions', replicateSecretToRegions_secretId - Use the Secret Id to replicate a secret to regions.

$sel:addReplicaRegions:ReplicateSecretToRegions', replicateSecretToRegions_addReplicaRegions - Add Regions to replicate the secret.

Request Lenses

replicateSecretToRegions_forceOverwriteReplicaSecret :: Lens' ReplicateSecretToRegions (Maybe Bool) Source #

(Optional) If set, Secrets Manager replication overwrites a secret with the same name in the destination region.

replicateSecretToRegions_secretId :: Lens' ReplicateSecretToRegions Text Source #

Use the Secret Id to replicate a secret to regions.

Destructuring the Response

data ReplicateSecretToRegionsResponse Source #

See: newReplicateSecretToRegionsResponse smart constructor.

Constructors

ReplicateSecretToRegionsResponse' 

Fields

Instances

Instances details
Eq ReplicateSecretToRegionsResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

Read ReplicateSecretToRegionsResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

Show ReplicateSecretToRegionsResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

Generic ReplicateSecretToRegionsResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

Associated Types

type Rep ReplicateSecretToRegionsResponse :: Type -> Type #

NFData ReplicateSecretToRegionsResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

type Rep ReplicateSecretToRegionsResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.ReplicateSecretToRegions

type Rep ReplicateSecretToRegionsResponse = D1 ('MetaData "ReplicateSecretToRegionsResponse" "Amazonka.SecretsManager.ReplicateSecretToRegions" "libZSservicesZSamazonka-secretsmanagerZSamazonka-secretsmanager" 'False) (C1 ('MetaCons "ReplicateSecretToRegionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "replicationStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ReplicationStatusType])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newReplicateSecretToRegionsResponse Source #

Create a value of ReplicateSecretToRegionsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:arn:ReplicateSecretToRegionsResponse', replicateSecretToRegionsResponse_arn - Replicate a secret based on the ReplicaRegionType> consisting of a Region(required) and a KMSKeyId (optional) which can be the ARN, KeyID, or Alias.

$sel:replicationStatus:ReplicateSecretToRegionsResponse', replicateSecretToRegionsResponse_replicationStatus - Describes the secret replication status as PENDING, SUCCESS or FAIL.

$sel:httpStatus:ReplicateSecretToRegionsResponse', replicateSecretToRegionsResponse_httpStatus - The response's http status code.

Response Lenses

replicateSecretToRegionsResponse_arn :: Lens' ReplicateSecretToRegionsResponse (Maybe Text) Source #

Replicate a secret based on the ReplicaRegionType> consisting of a Region(required) and a KMSKeyId (optional) which can be the ARN, KeyID, or Alias.

replicateSecretToRegionsResponse_replicationStatus :: Lens' ReplicateSecretToRegionsResponse (Maybe [ReplicationStatusType]) Source #

Describes the secret replication status as PENDING, SUCCESS or FAIL.