Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a new instance profile. For information about instance profiles, go to About Instance Profiles .
For information about the number of instance profiles you can create, see Limitations on IAM Entities in the IAM User Guide .
- createInstanceProfile :: Text -> CreateInstanceProfile
- data CreateInstanceProfile
- cipPath :: Lens' CreateInstanceProfile (Maybe Text)
- cipInstanceProfileName :: Lens' CreateInstanceProfile Text
- createInstanceProfileResponse :: Int -> InstanceProfile -> CreateInstanceProfileResponse
- data CreateInstanceProfileResponse
- ciprsResponseStatus :: Lens' CreateInstanceProfileResponse Int
- ciprsInstanceProfile :: Lens' CreateInstanceProfileResponse InstanceProfile
Creating a Request
createInstanceProfile Source #
Creates a value of CreateInstanceProfile
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cipPath
- The path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide . This parameter is optional. If it is not included, it defaults to a slash (). This parameter allows (per its <http:wikipedia.orgwikiregex regex pattern> ) a string of characters consisting of either a forward slash () by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (u0021) through the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.cipInstanceProfileName
- The name of the instance profile to create. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
data CreateInstanceProfile Source #
See: createInstanceProfile
smart constructor.
Request Lenses
cipPath :: Lens' CreateInstanceProfile (Maybe Text) Source #
The path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide . This parameter is optional. If it is not included, it defaults to a slash (). This parameter allows (per its <http:wikipedia.orgwikiregex regex pattern> ) a string of characters consisting of either a forward slash () by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (u0021) through the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
cipInstanceProfileName :: Lens' CreateInstanceProfile Text Source #
The name of the instance profile to create. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Destructuring the Response
createInstanceProfileResponse Source #
Creates a value of CreateInstanceProfileResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ciprsResponseStatus
- -- | The response status code.ciprsInstanceProfile
- A structure containing details about the new instance profile.
data CreateInstanceProfileResponse Source #
Contains the response to a successful CreateInstanceProfile
request.
See: createInstanceProfileResponse
smart constructor.
Response Lenses
ciprsResponseStatus :: Lens' CreateInstanceProfileResponse Int Source #
- - | The response status code.
ciprsInstanceProfile :: Lens' CreateInstanceProfileResponse InstanceProfile Source #
A structure containing details about the new instance profile.