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 studio component resource.
Synopsis
- data CreateStudioComponent = CreateStudioComponent' {
- initializationScripts :: Maybe [StudioComponentInitializationScript]
- clientToken :: Maybe Text
- ec2SecurityGroupIds :: Maybe (NonEmpty Text)
- subtype :: Maybe StudioComponentSubtype
- scriptParameters :: Maybe [ScriptParameterKeyValue]
- configuration :: Maybe StudioComponentConfiguration
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- studioId :: Text
- name :: Text
- type' :: StudioComponentType
- newCreateStudioComponent :: Text -> Text -> StudioComponentType -> CreateStudioComponent
- createStudioComponent_initializationScripts :: Lens' CreateStudioComponent (Maybe [StudioComponentInitializationScript])
- createStudioComponent_clientToken :: Lens' CreateStudioComponent (Maybe Text)
- createStudioComponent_ec2SecurityGroupIds :: Lens' CreateStudioComponent (Maybe (NonEmpty Text))
- createStudioComponent_subtype :: Lens' CreateStudioComponent (Maybe StudioComponentSubtype)
- createStudioComponent_scriptParameters :: Lens' CreateStudioComponent (Maybe [ScriptParameterKeyValue])
- createStudioComponent_configuration :: Lens' CreateStudioComponent (Maybe StudioComponentConfiguration)
- createStudioComponent_description :: Lens' CreateStudioComponent (Maybe Text)
- createStudioComponent_tags :: Lens' CreateStudioComponent (Maybe (HashMap Text Text))
- createStudioComponent_studioId :: Lens' CreateStudioComponent Text
- createStudioComponent_name :: Lens' CreateStudioComponent Text
- createStudioComponent_type :: Lens' CreateStudioComponent StudioComponentType
- data CreateStudioComponentResponse = CreateStudioComponentResponse' {}
- newCreateStudioComponentResponse :: Int -> CreateStudioComponentResponse
- createStudioComponentResponse_studioComponent :: Lens' CreateStudioComponentResponse (Maybe StudioComponent)
- createStudioComponentResponse_httpStatus :: Lens' CreateStudioComponentResponse Int
Creating a Request
data CreateStudioComponent Source #
The studio components.
See: newCreateStudioComponent
smart constructor.
CreateStudioComponent' | |
|
Instances
newCreateStudioComponent Source #
:: Text | |
-> Text | |
-> StudioComponentType | |
-> CreateStudioComponent |
Create a value of CreateStudioComponent
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:initializationScripts:CreateStudioComponent'
, createStudioComponent_initializationScripts
- Initialization scripts for studio components.
$sel:clientToken:CreateStudioComponent'
, createStudioComponent_clientToken
- To make an idempotent API request using one of these actions, specify a
client token in the request. You should not reuse the same client token
for other API requests. If you retry a request that completed
successfully using the same client token and the same parameters, the
retry succeeds without performing any further actions. If you retry a
successful request using the same client token, but one or more of the
parameters are different, the retry fails with a ValidationException
error.
$sel:ec2SecurityGroupIds:CreateStudioComponent'
, createStudioComponent_ec2SecurityGroupIds
- The EC2 security groups that control access to the studio component.
$sel:subtype:CreateStudioComponent'
, createStudioComponent_subtype
- The specific subtype of a studio component.
$sel:scriptParameters:CreateStudioComponent'
, createStudioComponent_scriptParameters
- Parameters for the studio component scripts.
$sel:configuration:CreateStudioComponent'
, createStudioComponent_configuration
- The configuration of the studio component, based on component type.
$sel:description:CreateStudioComponent'
, createStudioComponent_description
- The description.
$sel:tags:CreateStudioComponent'
, createStudioComponent_tags
- A collection of labels, in the form of key:value pairs, that apply to
this resource.
$sel:studioId:CreateStudioComponent'
, createStudioComponent_studioId
- The studio ID.
$sel:name:CreateStudioComponent'
, createStudioComponent_name
- The name for the studio component.
$sel:type':CreateStudioComponent'
, createStudioComponent_type
- The type of the studio component.
Request Lenses
createStudioComponent_initializationScripts :: Lens' CreateStudioComponent (Maybe [StudioComponentInitializationScript]) Source #
Initialization scripts for studio components.
createStudioComponent_clientToken :: Lens' CreateStudioComponent (Maybe Text) Source #
To make an idempotent API request using one of these actions, specify a client token in the request. You should not reuse the same client token for other API requests. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, the retry fails with a ValidationException error.
createStudioComponent_ec2SecurityGroupIds :: Lens' CreateStudioComponent (Maybe (NonEmpty Text)) Source #
The EC2 security groups that control access to the studio component.
createStudioComponent_subtype :: Lens' CreateStudioComponent (Maybe StudioComponentSubtype) Source #
The specific subtype of a studio component.
createStudioComponent_scriptParameters :: Lens' CreateStudioComponent (Maybe [ScriptParameterKeyValue]) Source #
Parameters for the studio component scripts.
createStudioComponent_configuration :: Lens' CreateStudioComponent (Maybe StudioComponentConfiguration) Source #
The configuration of the studio component, based on component type.
createStudioComponent_description :: Lens' CreateStudioComponent (Maybe Text) Source #
The description.
createStudioComponent_tags :: Lens' CreateStudioComponent (Maybe (HashMap Text Text)) Source #
A collection of labels, in the form of key:value pairs, that apply to this resource.
createStudioComponent_studioId :: Lens' CreateStudioComponent Text Source #
The studio ID.
createStudioComponent_name :: Lens' CreateStudioComponent Text Source #
The name for the studio component.
createStudioComponent_type :: Lens' CreateStudioComponent StudioComponentType Source #
The type of the studio component.
Destructuring the Response
data CreateStudioComponentResponse Source #
See: newCreateStudioComponentResponse
smart constructor.
CreateStudioComponentResponse' | |
|
Instances
newCreateStudioComponentResponse Source #
Create a value of CreateStudioComponentResponse
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:studioComponent:CreateStudioComponentResponse'
, createStudioComponentResponse_studioComponent
- Information about the studio component.
$sel:httpStatus:CreateStudioComponentResponse'
, createStudioComponentResponse_httpStatus
- The response's http status code.
Response Lenses
createStudioComponentResponse_studioComponent :: Lens' CreateStudioComponentResponse (Maybe StudioComponent) Source #
Information about the studio component.
createStudioComponentResponse_httpStatus :: Lens' CreateStudioComponentResponse Int Source #
The response's http status code.