libZSservicesZSamazonka-redshiftZSamazonka-redshift
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.Redshift.ModifyClusterIamRoles

Description

Modifies the list of Identity and Access Management (IAM) roles that can be used by the cluster to access other Amazon Web Services services.

A cluster can have up to 10 IAM roles associated at any time.

Synopsis

Creating a Request

data ModifyClusterIamRoles Source #

See: newModifyClusterIamRoles smart constructor.

Constructors

ModifyClusterIamRoles' 

Fields

  • removeIamRoles :: Maybe [Text]

    Zero or more IAM roles in ARN format to disassociate from the cluster. You can disassociate up to 10 IAM roles from a single cluster in a single request.

  • addIamRoles :: Maybe [Text]

    Zero or more IAM roles to associate with the cluster. The roles must be in their Amazon Resource Name (ARN) format. You can associate up to 10 IAM roles with a single cluster in a single request.

  • clusterIdentifier :: Text

    The unique identifier of the cluster for which you want to associate or disassociate IAM roles.

Instances

Instances details
Eq ModifyClusterIamRoles Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

Read ModifyClusterIamRoles Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

Show ModifyClusterIamRoles Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

Generic ModifyClusterIamRoles Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

Associated Types

type Rep ModifyClusterIamRoles :: Type -> Type #

NFData ModifyClusterIamRoles Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

Methods

rnf :: ModifyClusterIamRoles -> () #

Hashable ModifyClusterIamRoles Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

AWSRequest ModifyClusterIamRoles Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

Associated Types

type AWSResponse ModifyClusterIamRoles #

ToHeaders ModifyClusterIamRoles Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

ToPath ModifyClusterIamRoles Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

ToQuery ModifyClusterIamRoles Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

type Rep ModifyClusterIamRoles Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

type Rep ModifyClusterIamRoles = D1 ('MetaData "ModifyClusterIamRoles" "Amazonka.Redshift.ModifyClusterIamRoles" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "ModifyClusterIamRoles'" 'PrefixI 'True) (S1 ('MetaSel ('Just "removeIamRoles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "addIamRoles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "clusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ModifyClusterIamRoles Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

newModifyClusterIamRoles Source #

Create a value of ModifyClusterIamRoles 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:removeIamRoles:ModifyClusterIamRoles', modifyClusterIamRoles_removeIamRoles - Zero or more IAM roles in ARN format to disassociate from the cluster. You can disassociate up to 10 IAM roles from a single cluster in a single request.

$sel:addIamRoles:ModifyClusterIamRoles', modifyClusterIamRoles_addIamRoles - Zero or more IAM roles to associate with the cluster. The roles must be in their Amazon Resource Name (ARN) format. You can associate up to 10 IAM roles with a single cluster in a single request.

$sel:clusterIdentifier:ModifyClusterIamRoles', modifyClusterIamRoles_clusterIdentifier - The unique identifier of the cluster for which you want to associate or disassociate IAM roles.

Request Lenses

modifyClusterIamRoles_removeIamRoles :: Lens' ModifyClusterIamRoles (Maybe [Text]) Source #

Zero or more IAM roles in ARN format to disassociate from the cluster. You can disassociate up to 10 IAM roles from a single cluster in a single request.

modifyClusterIamRoles_addIamRoles :: Lens' ModifyClusterIamRoles (Maybe [Text]) Source #

Zero or more IAM roles to associate with the cluster. The roles must be in their Amazon Resource Name (ARN) format. You can associate up to 10 IAM roles with a single cluster in a single request.

modifyClusterIamRoles_clusterIdentifier :: Lens' ModifyClusterIamRoles Text Source #

The unique identifier of the cluster for which you want to associate or disassociate IAM roles.

Destructuring the Response

data ModifyClusterIamRolesResponse Source #

See: newModifyClusterIamRolesResponse smart constructor.

Constructors

ModifyClusterIamRolesResponse' 

Fields

Instances

Instances details
Eq ModifyClusterIamRolesResponse Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

Read ModifyClusterIamRolesResponse Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

Show ModifyClusterIamRolesResponse Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

Generic ModifyClusterIamRolesResponse Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

Associated Types

type Rep ModifyClusterIamRolesResponse :: Type -> Type #

NFData ModifyClusterIamRolesResponse Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

type Rep ModifyClusterIamRolesResponse Source # 
Instance details

Defined in Amazonka.Redshift.ModifyClusterIamRoles

type Rep ModifyClusterIamRolesResponse = D1 ('MetaData "ModifyClusterIamRolesResponse" "Amazonka.Redshift.ModifyClusterIamRoles" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "ModifyClusterIamRolesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Cluster)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newModifyClusterIamRolesResponse Source #

Create a value of ModifyClusterIamRolesResponse 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:cluster:ModifyClusterIamRolesResponse', modifyClusterIamRolesResponse_cluster - Undocumented member.

$sel:httpStatus:ModifyClusterIamRolesResponse', modifyClusterIamRolesResponse_httpStatus - The response's http status code.

Response Lenses