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 new component that can be used to build, validate, test, and assess your image. The component is based on a YAML document that you specify using exactly one of the following methods:
- Inline, using the
data
property in the request body. - A URL that points to a YAML document file stored in Amazon S3, using
the
uri
property in the request body.
Synopsis
- data CreateComponent = CreateComponent' {}
- newCreateComponent :: Text -> Text -> Platform -> Text -> CreateComponent
- createComponent_changeDescription :: Lens' CreateComponent (Maybe Text)
- createComponent_data :: Lens' CreateComponent (Maybe Text)
- createComponent_description :: Lens' CreateComponent (Maybe Text)
- createComponent_kmsKeyId :: Lens' CreateComponent (Maybe Text)
- createComponent_supportedOsVersions :: Lens' CreateComponent (Maybe (NonEmpty Text))
- createComponent_tags :: Lens' CreateComponent (Maybe (HashMap Text Text))
- createComponent_uri :: Lens' CreateComponent (Maybe 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_clientToken :: Lens' CreateComponentResponse (Maybe Text)
- createComponentResponse_componentBuildVersionArn :: Lens' CreateComponentResponse (Maybe Text)
- createComponentResponse_requestId :: 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:
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.
CreateComponent
, createComponent_data
- Component data
contains inline YAML document content for the
component. Alternatively, you can specify the uri
of a YAML document
file stored in Amazon S3. However, you cannot specify both properties.
CreateComponent
, createComponent_description
- The description of the component. Describes the contents of the
component.
CreateComponent
, createComponent_kmsKeyId
- The ID of the KMS key that should be used to encrypt this component.
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.
CreateComponent
, createComponent_tags
- The tags of the component.
$sel:uri:CreateComponent'
, createComponent_uri
- The uri
of a YAML component document file. This must be an S3 URL
(s3://bucket/key
), and the requester must have permission to access
the S3 bucket it points to. If you use Amazon S3, you can specify
component content up to your service quota.
Alternatively, you can specify the YAML document inline, using the
component data
property. You cannot specify both properties.
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.
CreateComponent
, createComponent_platform
- The platform of the component.
CreateComponent
, createComponent_clientToken
- The idempotency token of the component.
Request Lenses
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_data :: Lens' CreateComponent (Maybe Text) Source #
Component data
contains inline YAML document content for the
component. Alternatively, you can specify the uri
of a YAML document
file stored in Amazon S3. However, you cannot specify both properties.
createComponent_description :: Lens' CreateComponent (Maybe Text) Source #
The description of the component. Describes the contents of the component.
createComponent_kmsKeyId :: Lens' CreateComponent (Maybe Text) Source #
The ID of the KMS key that should be used to encrypt this 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_tags :: Lens' CreateComponent (Maybe (HashMap Text Text)) Source #
The tags of the component.
createComponent_uri :: Lens' CreateComponent (Maybe Text) Source #
The uri
of a YAML component document file. This must be an S3 URL
(s3://bucket/key
), and the requester must have permission to access
the S3 bucket it points to. If you use Amazon S3, you can specify
component content up to your service quota.
Alternatively, you can specify the YAML document inline, using the
component data
property. You cannot specify both properties.
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:
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:requestId:CreateComponentResponse'
, createComponentResponse_requestId
- The request ID that uniquely identifies this request.
$sel:httpStatus:CreateComponentResponse'
, createComponentResponse_httpStatus
- The response's http status code.
Response Lenses
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_requestId :: Lens' CreateComponentResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
createComponentResponse_httpStatus :: Lens' CreateComponentResponse Int Source #
The response's http status code.