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 |
Amazonka.Nimble.CreateStudio
Description
Create a new studio.
When creating a studio, two IAM roles must be provided: the admin role and the user role. These roles are assumed by your users when they log in to the Nimble Studio portal.
The user role must have the AmazonNimbleStudio-StudioUser
managed
policy attached for the portal to function properly.
The admin role must have the AmazonNimbleStudio-StudioAdmin
managed
policy attached for the portal to function properly.
You may optionally specify a KMS key in the
StudioEncryptionConfiguration
.
In Nimble Studio, resource names, descriptions, initialization scripts,
and other data you provide are always encrypted at rest using an KMS
key. By default, this key is owned by Amazon Web Services and managed on
your behalf. You may provide your own KMS key when calling
CreateStudio
to encrypt this data using a key you own and manage.
When providing an KMS key during studio creation, Nimble Studio creates KMS grants in your account to provide your studio user and admin roles access to these KMS keys.
If you delete this grant, the studio will no longer be accessible to your portal users.
If you delete the studio KMS key, your studio will no longer be accessible.
Synopsis
- data CreateStudio = CreateStudio' {}
- newCreateStudio :: Text -> Text -> Text -> Text -> CreateStudio
- createStudio_clientToken :: Lens' CreateStudio (Maybe Text)
- createStudio_studioEncryptionConfiguration :: Lens' CreateStudio (Maybe StudioEncryptionConfiguration)
- createStudio_tags :: Lens' CreateStudio (Maybe (HashMap Text Text))
- createStudio_adminRoleArn :: Lens' CreateStudio Text
- createStudio_displayName :: Lens' CreateStudio Text
- createStudio_studioName :: Lens' CreateStudio Text
- createStudio_userRoleArn :: Lens' CreateStudio Text
- data CreateStudioResponse = CreateStudioResponse' {
- studio :: Maybe Studio
- httpStatus :: Int
- newCreateStudioResponse :: Int -> CreateStudioResponse
- createStudioResponse_studio :: Lens' CreateStudioResponse (Maybe Studio)
- createStudioResponse_httpStatus :: Lens' CreateStudioResponse Int
Creating a Request
data CreateStudio Source #
See: newCreateStudio
smart constructor.
Constructors
CreateStudio' | |
Fields
|
Instances
Arguments
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> CreateStudio |
Create a value of CreateStudio
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:clientToken:CreateStudio'
, createStudio_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. If you don’t specify a client token, the
Amazon Web Services SDK automatically generates a client token and uses
it for the request to ensure idempotency.
CreateStudio
, createStudio_studioEncryptionConfiguration
- The studio encryption configuration.
CreateStudio
, createStudio_tags
- A collection of labels, in the form of key-value pairs, that apply to
this resource.
CreateStudio
, createStudio_adminRoleArn
- The IAM role that studio admins will assume when logging in to the
Nimble Studio portal.
CreateStudio
, createStudio_displayName
- A friendly name for the studio.
CreateStudio
, createStudio_studioName
- The studio name that is used in the URL of the Nimble Studio portal when
accessed by Nimble Studio users.
CreateStudio
, createStudio_userRoleArn
- The IAM role that studio users will assume when logging in to the Nimble
Studio portal.
Request Lenses
createStudio_clientToken :: Lens' CreateStudio (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency.
createStudio_studioEncryptionConfiguration :: Lens' CreateStudio (Maybe StudioEncryptionConfiguration) Source #
The studio encryption configuration.
createStudio_tags :: Lens' CreateStudio (Maybe (HashMap Text Text)) Source #
A collection of labels, in the form of key-value pairs, that apply to this resource.
createStudio_adminRoleArn :: Lens' CreateStudio Text Source #
The IAM role that studio admins will assume when logging in to the Nimble Studio portal.
createStudio_displayName :: Lens' CreateStudio Text Source #
A friendly name for the studio.
createStudio_studioName :: Lens' CreateStudio Text Source #
The studio name that is used in the URL of the Nimble Studio portal when accessed by Nimble Studio users.
createStudio_userRoleArn :: Lens' CreateStudio Text Source #
The IAM role that studio users will assume when logging in to the Nimble Studio portal.
Destructuring the Response
data CreateStudioResponse Source #
See: newCreateStudioResponse
smart constructor.
Constructors
CreateStudioResponse' | |
Fields
|
Instances
newCreateStudioResponse Source #
Arguments
:: Int | |
-> CreateStudioResponse |
Create a value of CreateStudioResponse
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:studio:CreateStudioResponse'
, createStudioResponse_studio
- Information about a studio.
$sel:httpStatus:CreateStudioResponse'
, createStudioResponse_httpStatus
- The response's http status code.
Response Lenses
createStudioResponse_studio :: Lens' CreateStudioResponse (Maybe Studio) Source #
Information about a studio.
createStudioResponse_httpStatus :: Lens' CreateStudioResponse Int Source #
The response's http status code.