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 |
Attaches an IAM managed policy ARN to a permission set.
If the permission set is already referenced by one or more account
assignments, you will need to call ProvisionPermissionSet
after this
operation. Calling ProvisionPermissionSet
applies the corresponding
IAM policy updates to all assigned accounts.
Synopsis
- data AttachManagedPolicyToPermissionSet = AttachManagedPolicyToPermissionSet' {}
- newAttachManagedPolicyToPermissionSet :: Text -> Text -> Text -> AttachManagedPolicyToPermissionSet
- attachManagedPolicyToPermissionSet_instanceArn :: Lens' AttachManagedPolicyToPermissionSet Text
- attachManagedPolicyToPermissionSet_permissionSetArn :: Lens' AttachManagedPolicyToPermissionSet Text
- attachManagedPolicyToPermissionSet_managedPolicyArn :: Lens' AttachManagedPolicyToPermissionSet Text
- data AttachManagedPolicyToPermissionSetResponse = AttachManagedPolicyToPermissionSetResponse' {
- httpStatus :: Int
- newAttachManagedPolicyToPermissionSetResponse :: Int -> AttachManagedPolicyToPermissionSetResponse
- attachManagedPolicyToPermissionSetResponse_httpStatus :: Lens' AttachManagedPolicyToPermissionSetResponse Int
Creating a Request
data AttachManagedPolicyToPermissionSet Source #
See: newAttachManagedPolicyToPermissionSet
smart constructor.
AttachManagedPolicyToPermissionSet' | |
|
Instances
newAttachManagedPolicyToPermissionSet Source #
:: Text | |
-> Text | |
-> Text | |
-> AttachManagedPolicyToPermissionSet |
Create a value of AttachManagedPolicyToPermissionSet
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:AttachManagedPolicyToPermissionSet'
, attachManagedPolicyToPermissionSet_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:permissionSetArn:AttachManagedPolicyToPermissionSet'
, attachManagedPolicyToPermissionSet_permissionSetArn
- The ARN of the PermissionSet that the managed policy should be attached
to.
$sel:managedPolicyArn:AttachManagedPolicyToPermissionSet'
, attachManagedPolicyToPermissionSet_managedPolicyArn
- The IAM managed policy ARN to be attached to a permission set.
Request Lenses
attachManagedPolicyToPermissionSet_instanceArn :: Lens' AttachManagedPolicyToPermissionSet 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.
attachManagedPolicyToPermissionSet_permissionSetArn :: Lens' AttachManagedPolicyToPermissionSet Text Source #
The ARN of the PermissionSet that the managed policy should be attached to.
attachManagedPolicyToPermissionSet_managedPolicyArn :: Lens' AttachManagedPolicyToPermissionSet Text Source #
The IAM managed policy ARN to be attached to a permission set.
Destructuring the Response
data AttachManagedPolicyToPermissionSetResponse Source #
See: newAttachManagedPolicyToPermissionSetResponse
smart constructor.
AttachManagedPolicyToPermissionSetResponse' | |
|
Instances
Eq AttachManagedPolicyToPermissionSetResponse Source # | |
Read AttachManagedPolicyToPermissionSetResponse Source # | |
Show AttachManagedPolicyToPermissionSetResponse Source # | |
Generic AttachManagedPolicyToPermissionSetResponse Source # | |
Defined in Amazonka.SSOAdmin.AttachManagedPolicyToPermissionSet type Rep AttachManagedPolicyToPermissionSetResponse :: Type -> Type # | |
NFData AttachManagedPolicyToPermissionSetResponse Source # | |
type Rep AttachManagedPolicyToPermissionSetResponse Source # | |
Defined in Amazonka.SSOAdmin.AttachManagedPolicyToPermissionSet type Rep AttachManagedPolicyToPermissionSetResponse = D1 ('MetaData "AttachManagedPolicyToPermissionSetResponse" "Amazonka.SSOAdmin.AttachManagedPolicyToPermissionSet" "libZSservicesZSamazonka-sso-adminZSamazonka-sso-admin" 'False) (C1 ('MetaCons "AttachManagedPolicyToPermissionSetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAttachManagedPolicyToPermissionSetResponse Source #
Create a value of AttachManagedPolicyToPermissionSetResponse
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:httpStatus:AttachManagedPolicyToPermissionSetResponse'
, attachManagedPolicyToPermissionSetResponse_httpStatus
- The response's http status code.
Response Lenses
attachManagedPolicyToPermissionSetResponse_httpStatus :: Lens' AttachManagedPolicyToPermissionSetResponse Int Source #
The response's http status code.