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.DeleteResourcePolicy

Description

Deletes the resource-based permission policy attached to the secret.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:DeleteResourcePolicy

Related operations

  • To attach a resource policy to a secret, use PutResourcePolicy.
  • To retrieve the current resource-based policy attached to a secret, use GetResourcePolicy.
  • To list all of the currently available secrets, use ListSecrets.
Synopsis

Creating a Request

data DeleteResourcePolicy Source #

See: newDeleteResourcePolicy smart constructor.

Constructors

DeleteResourcePolicy' 

Fields

  • secretId :: Text

    Specifies the secret that you want to delete the attached resource-based policy for. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

    For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

Instances

Instances details
Eq DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

Read DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

Show DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

Generic DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

Associated Types

type Rep DeleteResourcePolicy :: Type -> Type #

NFData DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

Methods

rnf :: DeleteResourcePolicy -> () #

Hashable DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

ToJSON DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

AWSRequest DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

Associated Types

type AWSResponse DeleteResourcePolicy #

ToHeaders DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

ToPath DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

ToQuery DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

type Rep DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

type Rep DeleteResourcePolicy = D1 ('MetaData "DeleteResourcePolicy" "Amazonka.SecretsManager.DeleteResourcePolicy" "libZSservicesZSamazonka-secretsmanagerZSamazonka-secretsmanager" 'False) (C1 ('MetaCons "DeleteResourcePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "secretId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteResourcePolicy Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

newDeleteResourcePolicy Source #

Create a value of DeleteResourcePolicy 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:secretId:DeleteResourcePolicy', deleteResourcePolicy_secretId - Specifies the secret that you want to delete the attached resource-based policy for. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

Request Lenses

deleteResourcePolicy_secretId :: Lens' DeleteResourcePolicy Text Source #

Specifies the secret that you want to delete the attached resource-based policy for. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

Destructuring the Response

data DeleteResourcePolicyResponse Source #

See: newDeleteResourcePolicyResponse smart constructor.

Constructors

DeleteResourcePolicyResponse' 

Fields

  • arn :: Maybe Text

    The ARN of the secret that the resource-based policy was deleted for.

  • name :: Maybe Text

    The friendly name of the secret that the resource-based policy was deleted for.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DeleteResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

Read DeleteResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

Show DeleteResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

Generic DeleteResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

Associated Types

type Rep DeleteResourcePolicyResponse :: Type -> Type #

NFData DeleteResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

type Rep DeleteResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.DeleteResourcePolicy

type Rep DeleteResourcePolicyResponse = D1 ('MetaData "DeleteResourcePolicyResponse" "Amazonka.SecretsManager.DeleteResourcePolicy" "libZSservicesZSamazonka-secretsmanagerZSamazonka-secretsmanager" 'False) (C1 ('MetaCons "DeleteResourcePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDeleteResourcePolicyResponse Source #

Create a value of DeleteResourcePolicyResponse 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:DeleteResourcePolicyResponse', deleteResourcePolicyResponse_arn - The ARN of the secret that the resource-based policy was deleted for.

$sel:name:DeleteResourcePolicyResponse', deleteResourcePolicyResponse_name - The friendly name of the secret that the resource-based policy was deleted for.

$sel:httpStatus:DeleteResourcePolicyResponse', deleteResourcePolicyResponse_httpStatus - The response's http status code.

Response Lenses

deleteResourcePolicyResponse_arn :: Lens' DeleteResourcePolicyResponse (Maybe Text) Source #

The ARN of the secret that the resource-based policy was deleted for.

deleteResourcePolicyResponse_name :: Lens' DeleteResourcePolicyResponse (Maybe Text) Source #

The friendly name of the secret that the resource-based policy was deleted for.