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 |
Creates a permission set within a specified SSO instance.
To grant users and groups access to Amazon Web Services account
resources, use CreateAccountAssignment
.
Synopsis
- data CreatePermissionSet = CreatePermissionSet' {
- relayState :: Maybe Text
- sessionDuration :: Maybe Text
- description :: Maybe Text
- tags :: Maybe [Tag]
- name :: Text
- instanceArn :: Text
- newCreatePermissionSet :: Text -> Text -> CreatePermissionSet
- createPermissionSet_relayState :: Lens' CreatePermissionSet (Maybe Text)
- createPermissionSet_sessionDuration :: Lens' CreatePermissionSet (Maybe Text)
- createPermissionSet_description :: Lens' CreatePermissionSet (Maybe Text)
- createPermissionSet_tags :: Lens' CreatePermissionSet (Maybe [Tag])
- createPermissionSet_name :: Lens' CreatePermissionSet Text
- createPermissionSet_instanceArn :: Lens' CreatePermissionSet Text
- data CreatePermissionSetResponse = CreatePermissionSetResponse' {}
- newCreatePermissionSetResponse :: Int -> CreatePermissionSetResponse
- createPermissionSetResponse_permissionSet :: Lens' CreatePermissionSetResponse (Maybe PermissionSet)
- createPermissionSetResponse_httpStatus :: Lens' CreatePermissionSetResponse Int
Creating a Request
data CreatePermissionSet Source #
See: newCreatePermissionSet
smart constructor.
CreatePermissionSet' | |
|
Instances
newCreatePermissionSet Source #
:: Text | |
-> Text | |
-> CreatePermissionSet |
Create a value of CreatePermissionSet
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:relayState:CreatePermissionSet'
, createPermissionSet_relayState
- Used to redirect users within the application during the federation
authentication process.
$sel:sessionDuration:CreatePermissionSet'
, createPermissionSet_sessionDuration
- The length of time that the application user sessions are valid in the
ISO-8601 standard.
$sel:description:CreatePermissionSet'
, createPermissionSet_description
- The description of the PermissionSet.
$sel:tags:CreatePermissionSet'
, createPermissionSet_tags
- The tags to attach to the new PermissionSet.
$sel:name:CreatePermissionSet'
, createPermissionSet_name
- The name of the PermissionSet.
$sel:instanceArn:CreatePermissionSet'
, createPermissionSet_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.
Request Lenses
createPermissionSet_relayState :: Lens' CreatePermissionSet (Maybe Text) Source #
Used to redirect users within the application during the federation authentication process.
createPermissionSet_sessionDuration :: Lens' CreatePermissionSet (Maybe Text) Source #
The length of time that the application user sessions are valid in the ISO-8601 standard.
createPermissionSet_description :: Lens' CreatePermissionSet (Maybe Text) Source #
The description of the PermissionSet.
createPermissionSet_tags :: Lens' CreatePermissionSet (Maybe [Tag]) Source #
The tags to attach to the new PermissionSet.
createPermissionSet_name :: Lens' CreatePermissionSet Text Source #
The name of the PermissionSet.
createPermissionSet_instanceArn :: Lens' CreatePermissionSet 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.
Destructuring the Response
data CreatePermissionSetResponse Source #
See: newCreatePermissionSetResponse
smart constructor.
CreatePermissionSetResponse' | |
|
Instances
newCreatePermissionSetResponse Source #
Create a value of CreatePermissionSetResponse
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:permissionSet:CreatePermissionSetResponse'
, createPermissionSetResponse_permissionSet
- Defines the level of access on an Amazon Web Services account.
$sel:httpStatus:CreatePermissionSetResponse'
, createPermissionSetResponse_httpStatus
- The response's http status code.
Response Lenses
createPermissionSetResponse_permissionSet :: Lens' CreatePermissionSetResponse (Maybe PermissionSet) Source #
Defines the level of access on an Amazon Web Services account.
createPermissionSetResponse_httpStatus :: Lens' CreatePermissionSetResponse Int Source #
The response's http status code.