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 new component that can be used to build, validate, test, and assess your image.
Synopsis
- data CreateComponent = CreateComponent' {}
- newCreateComponent :: Text -> Text -> Platform -> Text -> CreateComponent
- createComponent_data :: Lens' CreateComponent (Maybe Text)
- createComponent_supportedOsVersions :: Lens' CreateComponent (Maybe (NonEmpty Text))
- createComponent_uri :: Lens' CreateComponent (Maybe Text)
- createComponent_kmsKeyId :: Lens' CreateComponent (Maybe Text)
- createComponent_changeDescription :: Lens' CreateComponent (Maybe Text)
- createComponent_description :: Lens' CreateComponent (Maybe Text)
- createComponent_tags :: Lens' CreateComponent (Maybe (HashMap Text Text))
- createComponent_name :: Lens' CreateComponent Text
- createComponent_semanticVersion :: Lens' CreateComponent Text
- createComponent_platform :: Lens' CreateComponent Platform
- createComponent_clientToken :: Lens' CreateComponent Text
- data CreateComponentResponse = CreateComponentResponse' {}
- newCreateComponentResponse :: Int -> CreateComponentResponse
- createComponentResponse_requestId :: Lens' CreateComponentResponse (Maybe Text)
- createComponentResponse_clientToken :: Lens' CreateComponentResponse (Maybe Text)
- createComponentResponse_componentBuildVersionArn :: Lens' CreateComponentResponse (Maybe Text)
- createComponentResponse_httpStatus :: Lens' CreateComponentResponse Int
Creating a Request
data CreateComponent Source #
See: newCreateComponent
smart constructor.
CreateComponent' | |
|
Instances
:: Text | |
-> Text | |
-> Platform | |
-> Text | |
-> CreateComponent |
Create a value of CreateComponent
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:data':CreateComponent'
, createComponent_data
- The data of the component. Used to specify the data inline. Either
data
or uri
can be used to specify the data within the component.
$sel:supportedOsVersions:CreateComponent'
, createComponent_supportedOsVersions
- The operating system (OS) version supported by the component. If the OS
information is available, a prefix match is performed against the base
image OS version during image recipe creation.
$sel:uri:CreateComponent'
, createComponent_uri
- The uri of the component. Must be an Amazon S3 URL and the requester
must have permission to access the Amazon S3 bucket. If you use Amazon
S3, you can specify component content up to your service quota. Either
data
or uri
can be used to specify the data within the component.
$sel:kmsKeyId:CreateComponent'
, createComponent_kmsKeyId
- The ID of the KMS key that should be used to encrypt this component.
$sel:changeDescription:CreateComponent'
, createComponent_changeDescription
- The change description of the component. Describes what change has been
made in this version, or what makes this version different from other
versions of this component.
$sel:description:CreateComponent'
, createComponent_description
- The description of the component. Describes the contents of the
component.
$sel:tags:CreateComponent'
, createComponent_tags
- The tags of the component.
$sel:name:CreateComponent'
, createComponent_name
- The name of the component.
$sel:semanticVersion:CreateComponent'
, createComponent_semanticVersion
- The semantic version of the component. This version follows the semantic
version syntax.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
$sel:platform:CreateComponent'
, createComponent_platform
- The platform of the component.
$sel:clientToken:CreateComponent'
, createComponent_clientToken
- The idempotency token of the component.
Request Lenses
createComponent_data :: Lens' CreateComponent (Maybe Text) Source #
The data of the component. Used to specify the data inline. Either
data
or uri
can be used to specify the data within the component.
createComponent_supportedOsVersions :: Lens' CreateComponent (Maybe (NonEmpty Text)) Source #
The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.
createComponent_uri :: Lens' CreateComponent (Maybe Text) Source #
The uri of the component. Must be an Amazon S3 URL and the requester
must have permission to access the Amazon S3 bucket. If you use Amazon
S3, you can specify component content up to your service quota. Either
data
or uri
can be used to specify the data within the component.
createComponent_kmsKeyId :: Lens' CreateComponent (Maybe Text) Source #
The ID of the KMS key that should be used to encrypt this component.
createComponent_changeDescription :: Lens' CreateComponent (Maybe Text) Source #
The change description of the component. Describes what change has been made in this version, or what makes this version different from other versions of this component.
createComponent_description :: Lens' CreateComponent (Maybe Text) Source #
The description of the component. Describes the contents of the component.
createComponent_tags :: Lens' CreateComponent (Maybe (HashMap Text Text)) Source #
The tags of the component.
createComponent_name :: Lens' CreateComponent Text Source #
The name of the component.
createComponent_semanticVersion :: Lens' CreateComponent Text Source #
The semantic version of the component. This version follows the semantic version syntax.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
createComponent_platform :: Lens' CreateComponent Platform Source #
The platform of the component.
createComponent_clientToken :: Lens' CreateComponent Text Source #
The idempotency token of the component.
Destructuring the Response
data CreateComponentResponse Source #
See: newCreateComponentResponse
smart constructor.
CreateComponentResponse' | |
|
Instances
newCreateComponentResponse Source #
Create a value of CreateComponentResponse
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:requestId:CreateComponentResponse'
, createComponentResponse_requestId
- The request ID that uniquely identifies this request.
$sel:clientToken:CreateComponent'
, createComponentResponse_clientToken
- The idempotency token used to make this request idempotent.
$sel:componentBuildVersionArn:CreateComponentResponse'
, createComponentResponse_componentBuildVersionArn
- The Amazon Resource Name (ARN) of the component that was created by this
request.
$sel:httpStatus:CreateComponentResponse'
, createComponentResponse_httpStatus
- The response's http status code.
Response Lenses
createComponentResponse_requestId :: Lens' CreateComponentResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
createComponentResponse_clientToken :: Lens' CreateComponentResponse (Maybe Text) Source #
The idempotency token used to make this request idempotent.
createComponentResponse_componentBuildVersionArn :: Lens' CreateComponentResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the component that was created by this request.
createComponentResponse_httpStatus :: Lens' CreateComponentResponse Int Source #
The response's http status code.