libZSservicesZSamazonka-sso-adminZSamazonka-sso-admin
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.SSOAdmin.CreateAccountAssignment

Description

Assigns access to a principal for a specified Amazon Web Services account using a specified permission set.

The term principal here refers to a user or group that is defined in Amazon Web Services SSO.

As part of a successful CreateAccountAssignment call, the specified permission set will automatically be provisioned to the account in the form of an IAM policy. That policy is attached to the SSO-created IAM role. If the permission set is subsequently updated, the corresponding IAM policies attached to roles in your accounts will not be updated automatically. In this case, you must call ProvisionPermissionSet to make these updates.

Synopsis

Creating a Request

data CreateAccountAssignment Source #

See: newCreateAccountAssignment smart constructor.

Constructors

CreateAccountAssignment' 

Fields

Instances

Instances details
Eq CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

Read CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

Show CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

Generic CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

Associated Types

type Rep CreateAccountAssignment :: Type -> Type #

NFData CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

Methods

rnf :: CreateAccountAssignment -> () #

Hashable CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

ToJSON CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

AWSRequest CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

ToHeaders CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

ToPath CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

ToQuery CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

type Rep CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

type Rep CreateAccountAssignment = D1 ('MetaData "CreateAccountAssignment" "Amazonka.SSOAdmin.CreateAccountAssignment" "libZSservicesZSamazonka-sso-adminZSamazonka-sso-admin" 'False) (C1 ('MetaCons "CreateAccountAssignment'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "instanceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "targetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "targetType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TargetType))) :*: (S1 ('MetaSel ('Just "permissionSetArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "principalType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PrincipalType) :*: S1 ('MetaSel ('Just "principalId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateAccountAssignment Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

newCreateAccountAssignment Source #

Create a value of CreateAccountAssignment 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:instanceArn:CreateAccountAssignment', createAccountAssignment_instanceArn - The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

$sel:targetId:CreateAccountAssignment', createAccountAssignment_targetId - TargetID is an Amazon Web Services account identifier, typically a 10-12 digit string (For example, 123456789012).

$sel:targetType:CreateAccountAssignment', createAccountAssignment_targetType - The entity type for which the assignment will be created.

$sel:permissionSetArn:CreateAccountAssignment', createAccountAssignment_permissionSetArn - The ARN of the permission set that the admin wants to grant the principal access to.

$sel:principalType:CreateAccountAssignment', createAccountAssignment_principalType - The entity type for which the assignment will be created.

$sel:principalId:CreateAccountAssignment', createAccountAssignment_principalId - An identifier for an object in Amazon Web Services SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in Amazon Web Services SSO, see the Amazon Web Services SSO Identity Store API Reference.

Request Lenses

createAccountAssignment_instanceArn :: Lens' CreateAccountAssignment Text Source #

The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

createAccountAssignment_targetId :: Lens' CreateAccountAssignment Text Source #

TargetID is an Amazon Web Services account identifier, typically a 10-12 digit string (For example, 123456789012).

createAccountAssignment_targetType :: Lens' CreateAccountAssignment TargetType Source #

The entity type for which the assignment will be created.

createAccountAssignment_permissionSetArn :: Lens' CreateAccountAssignment Text Source #

The ARN of the permission set that the admin wants to grant the principal access to.

createAccountAssignment_principalType :: Lens' CreateAccountAssignment PrincipalType Source #

The entity type for which the assignment will be created.

createAccountAssignment_principalId :: Lens' CreateAccountAssignment Text Source #

An identifier for an object in Amazon Web Services SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in Amazon Web Services SSO, see the Amazon Web Services SSO Identity Store API Reference.

Destructuring the Response

data CreateAccountAssignmentResponse Source #

See: newCreateAccountAssignmentResponse smart constructor.

Constructors

CreateAccountAssignmentResponse' 

Fields

Instances

Instances details
Eq CreateAccountAssignmentResponse Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

Read CreateAccountAssignmentResponse Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

Show CreateAccountAssignmentResponse Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

Generic CreateAccountAssignmentResponse Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

Associated Types

type Rep CreateAccountAssignmentResponse :: Type -> Type #

NFData CreateAccountAssignmentResponse Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

type Rep CreateAccountAssignmentResponse Source # 
Instance details

Defined in Amazonka.SSOAdmin.CreateAccountAssignment

type Rep CreateAccountAssignmentResponse = D1 ('MetaData "CreateAccountAssignmentResponse" "Amazonka.SSOAdmin.CreateAccountAssignment" "libZSservicesZSamazonka-sso-adminZSamazonka-sso-admin" 'False) (C1 ('MetaCons "CreateAccountAssignmentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountAssignmentCreationStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccountAssignmentOperationStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateAccountAssignmentResponse Source #

Create a value of CreateAccountAssignmentResponse 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:accountAssignmentCreationStatus:CreateAccountAssignmentResponse', createAccountAssignmentResponse_accountAssignmentCreationStatus - The status object for the account assignment creation operation.

$sel:httpStatus:CreateAccountAssignmentResponse', createAccountAssignmentResponse_httpStatus - The response's http status code.

Response Lenses