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 recommendation template.
Synopsis
- data CreateRecommendationTemplate = CreateRecommendationTemplate' {}
- newCreateRecommendationTemplate :: Text -> Text -> CreateRecommendationTemplate
- createRecommendationTemplate_bucketName :: Lens' CreateRecommendationTemplate (Maybe Text)
- createRecommendationTemplate_clientToken :: Lens' CreateRecommendationTemplate (Maybe Text)
- createRecommendationTemplate_format :: Lens' CreateRecommendationTemplate (Maybe TemplateFormat)
- createRecommendationTemplate_recommendationIds :: Lens' CreateRecommendationTemplate (Maybe (NonEmpty Text))
- createRecommendationTemplate_recommendationTypes :: Lens' CreateRecommendationTemplate (Maybe (NonEmpty RenderRecommendationType))
- createRecommendationTemplate_tags :: Lens' CreateRecommendationTemplate (Maybe (HashMap Text Text))
- createRecommendationTemplate_assessmentArn :: Lens' CreateRecommendationTemplate Text
- createRecommendationTemplate_name :: Lens' CreateRecommendationTemplate Text
- data CreateRecommendationTemplateResponse = CreateRecommendationTemplateResponse' {}
- newCreateRecommendationTemplateResponse :: Int -> CreateRecommendationTemplateResponse
- createRecommendationTemplateResponse_recommendationTemplate :: Lens' CreateRecommendationTemplateResponse (Maybe RecommendationTemplate)
- createRecommendationTemplateResponse_httpStatus :: Lens' CreateRecommendationTemplateResponse Int
Creating a Request
data CreateRecommendationTemplate Source #
See: newCreateRecommendationTemplate
smart constructor.
CreateRecommendationTemplate' | |
|
Instances
newCreateRecommendationTemplate Source #
:: Text | |
-> Text | |
-> CreateRecommendationTemplate |
Create a value of CreateRecommendationTemplate
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:bucketName:CreateRecommendationTemplate'
, createRecommendationTemplate_bucketName
- The name of the Amazon S3 bucket that will contain the recommendation
template.
$sel:clientToken:CreateRecommendationTemplate'
, createRecommendationTemplate_clientToken
- Used for an idempotency token. A client token is a unique,
case-sensitive string of up to 64 ASCII characters. You should not reuse
the same client token for other API requests.
CreateRecommendationTemplate
, createRecommendationTemplate_format
- The format for the recommendation template.
- CfnJson
- The template is CloudFormation JSON.
- CfnYaml
- The template is CloudFormation YAML.
CreateRecommendationTemplate
, createRecommendationTemplate_recommendationIds
- Identifiers for the recommendations used to create a recommendation
template.
CreateRecommendationTemplate
, createRecommendationTemplate_recommendationTypes
- An array of strings that specify the recommendation template type or
types.
- Alarm
- The template is an AlarmRecommendation template.
- Sop
- The template is a SopRecommendation template.
- Test
- The template is a TestRecommendation template.
CreateRecommendationTemplate
, createRecommendationTemplate_tags
- The tags assigned to the resource. A tag is a label that you assign to
an Amazon Web Services resource. Each tag consists of a key/value pair.
CreateRecommendationTemplate
, createRecommendationTemplate_assessmentArn
- The Amazon Resource Name (ARN) of the assessment. The format for this
ARN is:
arn:partition
:resiliencehub:region
:account
:app-assessment/app-id
.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the AWS General Reference.
CreateRecommendationTemplate
, createRecommendationTemplate_name
- The name for the recommendation template.
Request Lenses
createRecommendationTemplate_bucketName :: Lens' CreateRecommendationTemplate (Maybe Text) Source #
The name of the Amazon S3 bucket that will contain the recommendation template.
createRecommendationTemplate_clientToken :: Lens' CreateRecommendationTemplate (Maybe Text) Source #
Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
createRecommendationTemplate_format :: Lens' CreateRecommendationTemplate (Maybe TemplateFormat) Source #
The format for the recommendation template.
- CfnJson
- The template is CloudFormation JSON.
- CfnYaml
- The template is CloudFormation YAML.
createRecommendationTemplate_recommendationIds :: Lens' CreateRecommendationTemplate (Maybe (NonEmpty Text)) Source #
Identifiers for the recommendations used to create a recommendation template.
createRecommendationTemplate_recommendationTypes :: Lens' CreateRecommendationTemplate (Maybe (NonEmpty RenderRecommendationType)) Source #
An array of strings that specify the recommendation template type or types.
- Alarm
- The template is an AlarmRecommendation template.
- Sop
- The template is a SopRecommendation template.
- Test
- The template is a TestRecommendation template.
createRecommendationTemplate_tags :: Lens' CreateRecommendationTemplate (Maybe (HashMap Text Text)) Source #
The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
createRecommendationTemplate_assessmentArn :: Lens' CreateRecommendationTemplate Text Source #
The Amazon Resource Name (ARN) of the assessment. The format for this
ARN is:
arn:partition
:resiliencehub:region
:account
:app-assessment/app-id
.
For more information about ARNs, see
Amazon Resource Names (ARNs)
in the AWS General Reference.
createRecommendationTemplate_name :: Lens' CreateRecommendationTemplate Text Source #
The name for the recommendation template.
Destructuring the Response
data CreateRecommendationTemplateResponse Source #
See: newCreateRecommendationTemplateResponse
smart constructor.
CreateRecommendationTemplateResponse' | |
|
Instances
newCreateRecommendationTemplateResponse Source #
Create a value of CreateRecommendationTemplateResponse
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:recommendationTemplate:CreateRecommendationTemplateResponse'
, createRecommendationTemplateResponse_recommendationTemplate
- The newly created recommendation template, returned as an object. This
object includes the template's name, format, status, tags, Amazon S3
bucket location, and more.
$sel:httpStatus:CreateRecommendationTemplateResponse'
, createRecommendationTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
createRecommendationTemplateResponse_recommendationTemplate :: Lens' CreateRecommendationTemplateResponse (Maybe RecommendationTemplate) Source #
The newly created recommendation template, returned as an object. This object includes the template's name, format, status, tags, Amazon S3 bucket location, and more.
createRecommendationTemplateResponse_httpStatus :: Lens' CreateRecommendationTemplateResponse Int Source #
The response's http status code.