Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a profile. A profile is configuration resource to list the roles that RolesAnywhere service is trusted to assume. In addition, by applying a profile you can intersect permissions with IAM managed policies.
Required permissions: rolesanywhere:CreateProfile
.
Synopsis
- data CreateProfile = CreateProfile' {}
- newCreateProfile :: Text -> CreateProfile
- createProfile_durationSeconds :: Lens' CreateProfile (Maybe Natural)
- createProfile_enabled :: Lens' CreateProfile (Maybe Bool)
- createProfile_managedPolicyArns :: Lens' CreateProfile (Maybe [Text])
- createProfile_requireInstanceProperties :: Lens' CreateProfile (Maybe Bool)
- createProfile_sessionPolicy :: Lens' CreateProfile (Maybe Text)
- createProfile_tags :: Lens' CreateProfile (Maybe [Tag])
- createProfile_name :: Lens' CreateProfile Text
- createProfile_roleArns :: Lens' CreateProfile [Text]
- data ProfileDetailResponse = ProfileDetailResponse' {}
- newProfileDetailResponse :: ProfileDetailResponse
- profileDetailResponse_profile :: Lens' ProfileDetailResponse (Maybe ProfileDetail)
Creating a Request
data CreateProfile Source #
See: newCreateProfile
smart constructor.
CreateProfile' | |
|
Instances
Create a value of CreateProfile
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:
CreateProfile
, createProfile_durationSeconds
- The number of seconds the vended session credentials are valid for.
CreateProfile
, createProfile_enabled
- Specifies whether the profile is enabled.
CreateProfile
, createProfile_managedPolicyArns
- A list of managed policy ARNs that apply to the vended session
credentials.
CreateProfile
, createProfile_requireInstanceProperties
- Specifies whether instance properties are required in
CreateSession
requests with this profile.
CreateProfile
, createProfile_sessionPolicy
- A session policy that applies to the trust boundary of the vended
session credentials.
$sel:tags:CreateProfile'
, createProfile_tags
- The tags to attach to the profile.
CreateProfile
, createProfile_name
- The name of the profile.
CreateProfile
, createProfile_roleArns
- A list of IAM roles that this profile can assume in a
CreateSession
operation.
Request Lenses
createProfile_durationSeconds :: Lens' CreateProfile (Maybe Natural) Source #
The number of seconds the vended session credentials are valid for.
createProfile_enabled :: Lens' CreateProfile (Maybe Bool) Source #
Specifies whether the profile is enabled.
createProfile_managedPolicyArns :: Lens' CreateProfile (Maybe [Text]) Source #
A list of managed policy ARNs that apply to the vended session credentials.
createProfile_requireInstanceProperties :: Lens' CreateProfile (Maybe Bool) Source #
Specifies whether instance properties are required in CreateSession requests with this profile.
createProfile_sessionPolicy :: Lens' CreateProfile (Maybe Text) Source #
A session policy that applies to the trust boundary of the vended session credentials.
createProfile_tags :: Lens' CreateProfile (Maybe [Tag]) Source #
The tags to attach to the profile.
createProfile_name :: Lens' CreateProfile Text Source #
The name of the profile.
createProfile_roleArns :: Lens' CreateProfile [Text] Source #
A list of IAM roles that this profile can assume in a CreateSession operation.
Destructuring the Response
data ProfileDetailResponse Source #
See: newProfileDetailResponse
smart constructor.
ProfileDetailResponse' | |
|
Instances
newProfileDetailResponse :: ProfileDetailResponse Source #
Create a value of ProfileDetailResponse
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:profile:ProfileDetailResponse'
, profileDetailResponse_profile
- The state of the profile after a read or write operation.
Response Lenses
profileDetailResponse_profile :: Lens' ProfileDetailResponse (Maybe ProfileDetail) Source #
The state of the profile after a read or write operation.