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 |
Create a new workload.
The owner of a workload can share the workload with other AWS accounts and IAM users in the same AWS Region. Only the owner of a workload can delete it.
For more information, see Defining a Workload in the AWS Well-Architected Tool User Guide.
Synopsis
- data CreateWorkload = CreateWorkload' {
- architecturalDesign :: Maybe Text
- accountIds :: Maybe [Text]
- industry :: Maybe Text
- awsRegions :: Maybe [Text]
- industryType :: Maybe Text
- notes :: Maybe Text
- pillarPriorities :: Maybe [Text]
- nonAwsRegions :: Maybe [Text]
- tags :: Maybe (HashMap Text Text)
- workloadName :: Text
- description :: Text
- environment :: WorkloadEnvironment
- reviewOwner :: Text
- lenses :: [Text]
- clientRequestToken :: Text
- newCreateWorkload :: Text -> Text -> WorkloadEnvironment -> Text -> Text -> CreateWorkload
- createWorkload_architecturalDesign :: Lens' CreateWorkload (Maybe Text)
- createWorkload_accountIds :: Lens' CreateWorkload (Maybe [Text])
- createWorkload_industry :: Lens' CreateWorkload (Maybe Text)
- createWorkload_awsRegions :: Lens' CreateWorkload (Maybe [Text])
- createWorkload_industryType :: Lens' CreateWorkload (Maybe Text)
- createWorkload_notes :: Lens' CreateWorkload (Maybe Text)
- createWorkload_pillarPriorities :: Lens' CreateWorkload (Maybe [Text])
- createWorkload_nonAwsRegions :: Lens' CreateWorkload (Maybe [Text])
- createWorkload_tags :: Lens' CreateWorkload (Maybe (HashMap Text Text))
- createWorkload_workloadName :: Lens' CreateWorkload Text
- createWorkload_description :: Lens' CreateWorkload Text
- createWorkload_environment :: Lens' CreateWorkload WorkloadEnvironment
- createWorkload_reviewOwner :: Lens' CreateWorkload Text
- createWorkload_lenses :: Lens' CreateWorkload [Text]
- createWorkload_clientRequestToken :: Lens' CreateWorkload Text
- data CreateWorkloadResponse = CreateWorkloadResponse' {
- workloadArn :: Maybe Text
- workloadId :: Maybe Text
- httpStatus :: Int
- newCreateWorkloadResponse :: Int -> CreateWorkloadResponse
- createWorkloadResponse_workloadArn :: Lens' CreateWorkloadResponse (Maybe Text)
- createWorkloadResponse_workloadId :: Lens' CreateWorkloadResponse (Maybe Text)
- createWorkloadResponse_httpStatus :: Lens' CreateWorkloadResponse Int
Creating a Request
data CreateWorkload Source #
Input for workload creation.
See: newCreateWorkload
smart constructor.
CreateWorkload' | |
|
Instances
:: Text | |
-> Text | |
-> WorkloadEnvironment | |
-> Text | |
-> Text | |
-> CreateWorkload |
Create a value of CreateWorkload
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:architecturalDesign:CreateWorkload'
, createWorkload_architecturalDesign
- Undocumented member.
$sel:accountIds:CreateWorkload'
, createWorkload_accountIds
- Undocumented member.
$sel:industry:CreateWorkload'
, createWorkload_industry
- Undocumented member.
$sel:awsRegions:CreateWorkload'
, createWorkload_awsRegions
- Undocumented member.
$sel:industryType:CreateWorkload'
, createWorkload_industryType
- Undocumented member.
$sel:notes:CreateWorkload'
, createWorkload_notes
- Undocumented member.
$sel:pillarPriorities:CreateWorkload'
, createWorkload_pillarPriorities
- Undocumented member.
$sel:nonAwsRegions:CreateWorkload'
, createWorkload_nonAwsRegions
- Undocumented member.
$sel:tags:CreateWorkload'
, createWorkload_tags
- The tags to be associated with the workload.
$sel:workloadName:CreateWorkload'
, createWorkload_workloadName
- Undocumented member.
$sel:description:CreateWorkload'
, createWorkload_description
- Undocumented member.
$sel:environment:CreateWorkload'
, createWorkload_environment
- Undocumented member.
$sel:reviewOwner:CreateWorkload'
, createWorkload_reviewOwner
- Undocumented member.
$sel:lenses:CreateWorkload'
, createWorkload_lenses
- Undocumented member.
$sel:clientRequestToken:CreateWorkload'
, createWorkload_clientRequestToken
- Undocumented member.
Request Lenses
createWorkload_architecturalDesign :: Lens' CreateWorkload (Maybe Text) Source #
Undocumented member.
createWorkload_accountIds :: Lens' CreateWorkload (Maybe [Text]) Source #
Undocumented member.
createWorkload_industry :: Lens' CreateWorkload (Maybe Text) Source #
Undocumented member.
createWorkload_awsRegions :: Lens' CreateWorkload (Maybe [Text]) Source #
Undocumented member.
createWorkload_industryType :: Lens' CreateWorkload (Maybe Text) Source #
Undocumented member.
createWorkload_notes :: Lens' CreateWorkload (Maybe Text) Source #
Undocumented member.
createWorkload_pillarPriorities :: Lens' CreateWorkload (Maybe [Text]) Source #
Undocumented member.
createWorkload_nonAwsRegions :: Lens' CreateWorkload (Maybe [Text]) Source #
Undocumented member.
createWorkload_tags :: Lens' CreateWorkload (Maybe (HashMap Text Text)) Source #
The tags to be associated with the workload.
createWorkload_workloadName :: Lens' CreateWorkload Text Source #
Undocumented member.
createWorkload_description :: Lens' CreateWorkload Text Source #
Undocumented member.
createWorkload_environment :: Lens' CreateWorkload WorkloadEnvironment Source #
Undocumented member.
createWorkload_reviewOwner :: Lens' CreateWorkload Text Source #
Undocumented member.
createWorkload_lenses :: Lens' CreateWorkload [Text] Source #
Undocumented member.
createWorkload_clientRequestToken :: Lens' CreateWorkload Text Source #
Undocumented member.
Destructuring the Response
data CreateWorkloadResponse Source #
Output of a create workload call.
See: newCreateWorkloadResponse
smart constructor.
CreateWorkloadResponse' | |
|
Instances
newCreateWorkloadResponse Source #
Create a value of CreateWorkloadResponse
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:workloadArn:CreateWorkloadResponse'
, createWorkloadResponse_workloadArn
- Undocumented member.
$sel:workloadId:CreateWorkloadResponse'
, createWorkloadResponse_workloadId
- Undocumented member.
$sel:httpStatus:CreateWorkloadResponse'
, createWorkloadResponse_httpStatus
- The response's http status code.
Response Lenses
createWorkloadResponse_workloadArn :: Lens' CreateWorkloadResponse (Maybe Text) Source #
Undocumented member.
createWorkloadResponse_workloadId :: Lens' CreateWorkloadResponse (Maybe Text) Source #
Undocumented member.
createWorkloadResponse_httpStatus :: Lens' CreateWorkloadResponse Int Source #
The response's http status code.