Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateAccountAssignment = CreateAccountAssignment' {}
- newCreateAccountAssignment :: Text -> Text -> TargetType -> Text -> PrincipalType -> Text -> CreateAccountAssignment
- createAccountAssignment_instanceArn :: Lens' CreateAccountAssignment Text
- createAccountAssignment_targetId :: Lens' CreateAccountAssignment Text
- createAccountAssignment_targetType :: Lens' CreateAccountAssignment TargetType
- createAccountAssignment_permissionSetArn :: Lens' CreateAccountAssignment Text
- createAccountAssignment_principalType :: Lens' CreateAccountAssignment PrincipalType
- createAccountAssignment_principalId :: Lens' CreateAccountAssignment Text
- data CreateAccountAssignmentResponse = CreateAccountAssignmentResponse' {}
- newCreateAccountAssignmentResponse :: Int -> CreateAccountAssignmentResponse
- createAccountAssignmentResponse_accountAssignmentCreationStatus :: Lens' CreateAccountAssignmentResponse (Maybe AccountAssignmentOperationStatus)
- createAccountAssignmentResponse_httpStatus :: Lens' CreateAccountAssignmentResponse Int
Creating a Request
data CreateAccountAssignment Source #
See: newCreateAccountAssignment
smart constructor.
CreateAccountAssignment' | |
|
Instances
newCreateAccountAssignment Source #
:: Text | |
-> Text | |
-> TargetType | |
-> Text | |
-> PrincipalType | |
-> Text | |
-> CreateAccountAssignment |
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.
CreateAccountAssignmentResponse' | |
|
Instances
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
createAccountAssignmentResponse_accountAssignmentCreationStatus :: Lens' CreateAccountAssignmentResponse (Maybe AccountAssignmentOperationStatus) Source #
The status object for the account assignment creation operation.
createAccountAssignmentResponse_httpStatus :: Lens' CreateAccountAssignmentResponse Int Source #
The response's http status code.