cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
1,364 lines • 123 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Wellarchitected = void 0;
const shared_1 = require("../../shared");
/**
* Statement provider for service [wellarchitected](https://docs.aws.amazon.com/service-authorization/latest/reference/list_wellarchitected.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
class Wellarchitected extends shared_1.PolicyStatement {
/**
* Grants permission to associate a lens to the specified workload
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_AssociateLenses.html
*/
toAssociateLenses() {
return this.to('AssociateLenses');
}
/**
* Grants permission to associate a profile to the specified workload
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_AssociateProfiles.html
*/
toAssociateProfiles() {
return this.to('AssociateProfiles');
}
/**
* Grants permission to create a context associated with a profile
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_CreateAgentContext.html
*/
toCreateAgentContext() {
return this.to('CreateAgentContext');
}
/**
* Grants permission to create a goal associated with a profile
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_CreateAgentGoal.html
*/
toCreateAgentGoal() {
return this.to('CreateAgentGoal');
}
/**
* Grants permission to create an agent profile
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_CreateAgentProfile.html
*/
toCreateAgentProfile() {
return this.to('CreateAgentProfile');
}
/**
* Grants permission to an owner of a lens to share with other AWS accounts and IAM users
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_CreateLensShare.html
*/
toCreateLensShare() {
return this.to('CreateLensShare');
}
/**
* Grants permission to create a new lens version
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_CreateLensVersion.html
*/
toCreateLensVersion() {
return this.to('CreateLensVersion');
}
/**
* Grants permission to create a new milestone for the specified workload
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_CreateMilestone.html
*/
toCreateMilestone() {
return this.to('CreateMilestone');
}
/**
* Grants permission to create a new profile
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_CreateProfile.html
*/
toCreateProfile() {
return this.to('CreateProfile');
}
/**
* Grants permission to an owner of a profile to share with other AWS accounts and IAM users
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_CreateProfileShare.html
*/
toCreateProfileShare() {
return this.to('CreateProfileShare');
}
/**
* Grants permission to create a new review template
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_CreateReviewTemplate.html
*/
toCreateReviewTemplate() {
return this.to('CreateReviewTemplate');
}
/**
* Grants permission to an owner of a review template to share with other AWS accounts and IAM users
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_CreateTemplateShare.html
*/
toCreateTemplateShare() {
return this.to('CreateTemplateShare');
}
/**
* Grants permission to create a new workload
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
* - .ifJiraProjectKey()
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_CreateWorkload.html
*/
toCreateWorkload() {
return this.to('CreateWorkload');
}
/**
* Grants permission to share a workload with another account
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_CreateWorkloadShare.html
*/
toCreateWorkloadShare() {
return this.to('CreateWorkloadShare');
}
/**
* Grants permission to delete a context associated with a profile
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DeleteAgentContext.html
*/
toDeleteAgentContext() {
return this.to('DeleteAgentContext');
}
/**
* Grants permission to delete a goal associated with a profile
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DeleteAgentGoal.html
*/
toDeleteAgentGoal() {
return this.to('DeleteAgentGoal');
}
/**
* Grants permission to delete an agent profile
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DeleteAgentProfile.html
*/
toDeleteAgentProfile() {
return this.to('DeleteAgentProfile');
}
/**
* Grants permission to delete a lens
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DeleteLens.html
*/
toDeleteLens() {
return this.to('DeleteLens');
}
/**
* Grants permission to delete an existing lens share
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DeleteLensShare.html
*/
toDeleteLensShare() {
return this.to('DeleteLensShare');
}
/**
* Grants permission to delete a profile
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DeleteProfile.html
*/
toDeleteProfile() {
return this.to('DeleteProfile');
}
/**
* Grants permission to delete an existing profile share
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DeleteProfileShare.html
*/
toDeleteProfileShare() {
return this.to('DeleteProfileShare');
}
/**
* Grants permission to delete an existing review template
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DeleteReviewTemplate.html
*/
toDeleteReviewTemplate() {
return this.to('DeleteReviewTemplate');
}
/**
* Grants permission to delete an existing review template share
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DeleteTemplateShare.html
*/
toDeleteTemplateShare() {
return this.to('DeleteTemplateShare');
}
/**
* Grants permission to delete an existing workload
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DeleteWorkload.html
*/
toDeleteWorkload() {
return this.to('DeleteWorkload');
}
/**
* Grants permission to delete an existing workload share
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DeleteWorkloadShare.html
*/
toDeleteWorkloadShare() {
return this.to('DeleteWorkloadShare');
}
/**
* Grants permission to disassociate a lens from the specified workload
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DisassociateLenses.html
*/
toDisassociateLenses() {
return this.to('DisassociateLenses');
}
/**
* Grants permission to disassociate a profile from the specified workload
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DisassociateProfiles.html
*/
toDisassociateProfiles() {
return this.to('DisassociateProfiles');
}
/**
* Grants permission to export an existing lens
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ExportLens.html
*/
toExportLens() {
return this.to('ExportLens');
}
/**
* Grants permission to get context associated with a profile
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetAgentContext.html
*/
toGetAgentContext() {
return this.to('GetAgentContext');
}
/**
* Grants permission to get goal associated with a profile
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetAgentGoal.html
*/
toGetAgentGoal() {
return this.to('GetAgentGoal');
}
/**
* Grants permission to get agent profile by profile arn
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetAgentProfile.html
*/
toGetAgentProfile() {
return this.to('GetAgentProfile');
}
/**
* Grants permission to get a recommendation by recommendation ARN
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetAgentRecommendation.html
*/
toGetAgentRecommendation() {
return this.to('GetAgentRecommendation');
}
/**
* Grants permission to get a recommendation generation
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetAgentRecommendationGeneration.html
*/
toGetAgentRecommendationGeneration() {
return this.to('GetAgentRecommendationGeneration');
}
/**
* Grants permission to retrieve the specified answer from the specified lens review
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetAnswer.html
*/
toGetAnswer() {
return this.to('GetAnswer');
}
/**
* Grants permission to get consolidated report metrics or to generate the consolidated report PDF in this account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetConsolidatedReport.html
*/
toGetConsolidatedReport() {
return this.to('GetConsolidatedReport');
}
/**
* Grants permission to get all settings for the account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetGlobalSettings.html
*/
toGetGlobalSettings() {
return this.to('GetGlobalSettings');
}
/**
* Grants permission to get an existing lens
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_DeleteLensShare.html
*/
toGetLens() {
return this.to('GetLens');
}
/**
* Grants permission to retrieve the specified lens review of the specified workload
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetLensReview.html
*/
toGetLensReview() {
return this.to('GetLensReview');
}
/**
* Grants permission to retrieve the report for the specified lens review
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetLensReviewReport.html
*/
toGetLensReviewReport() {
return this.to('GetLensReviewReport');
}
/**
* Grants permission to get the difference between the specified lens version and latest available lens version
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetLensVersionDifference.html
*/
toGetLensVersionDifference() {
return this.to('GetLensVersionDifference');
}
/**
* Grants permission to retrieve the specified milestone of the specified workload
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetMilestone.html
*/
toGetMilestone() {
return this.to('GetMilestone');
}
/**
* Grants permission to retrieve the specified profile
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetProfile.html
*/
toGetProfile() {
return this.to('GetProfile');
}
/**
* Grants permission to retrieve the specified profile template
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetProfileTemplate.html
*/
toGetProfileTemplate() {
return this.to('GetProfileTemplate');
}
/**
* Grants permission to retrieve the specified review template
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetReviewTemplate.html
*/
toGetReviewTemplate() {
return this.to('GetReviewTemplate');
}
/**
* Grants permission to retrieve the specified answer from the specified review template lens review
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetReviewTemplateAnswer.html
*/
toGetReviewTemplateAnswer() {
return this.to('GetReviewTemplateAnswer');
}
/**
* Grants permission to retrieve the specified lens review of the specified review template
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetReviewTemplateLensReview.html
*/
toGetReviewTemplateLensReview() {
return this.to('GetReviewTemplateLensReview');
}
/**
* Grants permission to retrieve the specified workload
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_GetWorkload.html
*/
toGetWorkload() {
return this.to('GetWorkload');
}
/**
* Grants permission to import a new lens
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ImportLens.html
*/
toImportLens() {
return this.to('ImportLens');
}
/**
* Grants permission to list contexts associated with a profile by filters on the fields
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListAgentContexts.html
*/
toListAgentContexts() {
return this.to('ListAgentContexts');
}
/**
* Grants permission to list goals associated with a profile by filters on the fields
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListAgentGoals.html
*/
toListAgentGoals() {
return this.to('ListAgentGoals');
}
/**
* Grants permission to list agent profiles
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListAgentProfiles.html
*/
toListAgentProfiles() {
return this.to('ListAgentProfiles');
}
/**
* Grants permission to list recommendation generations
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListAgentRecommendationGenerations.html
*/
toListAgentRecommendationGenerations() {
return this.to('ListAgentRecommendationGenerations');
}
/**
* Grants permission to list recommendation items associated with a recommendation
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListAgentRecommendationItems.html
*/
toListAgentRecommendationItems() {
return this.to('ListAgentRecommendationItems');
}
/**
* Grants permission to list recommendations by profile ARN
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListAgentRecommendations.html
*/
toListAgentRecommendations() {
return this.to('ListAgentRecommendations');
}
/**
* Grants permission to list the answers from the specified lens review
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListAnswers.html
*/
toListAnswers() {
return this.to('ListAnswers');
}
/**
* Grants permission to list the check-details for the workload
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListCheckDetails.html
*/
toListCheckDetails() {
return this.to('ListCheckDetails');
}
/**
* Grants permission to list the check-summaries for the workload
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListCheckSummaries.html
*/
toListCheckSummaries() {
return this.to('ListCheckSummaries');
}
/**
* Grants permission to list the improvements of the specified lens review
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListLensReviewImprovements.html
*/
toListLensReviewImprovements() {
return this.to('ListLensReviewImprovements');
}
/**
* Grants permission to list the lens reviews of the specified workload
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListLensReviews.html
*/
toListLensReviews() {
return this.to('ListLensReviews');
}
/**
* Grants permission to list all shares created for a lens
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListLensShares.html
*/
toListLensShares() {
return this.to('ListLensShares');
}
/**
* Grants permission to list the lenses available to this account
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListLenses.html
*/
toListLenses() {
return this.to('ListLenses');
}
/**
* Grants permission to list the milestones of the specified workload
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListMilestones.html
*/
toListMilestones() {
return this.to('ListMilestones');
}
/**
* Grants permission to list notifications related to the account or specified resource
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListNotifications.html
*/
toListNotifications() {
return this.to('ListNotifications');
}
/**
* Grants permission to list profile notifications related to specified resource
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListProfileNotifications.html
*/
toListProfileNotifications() {
return this.to('ListProfileNotifications');
}
/**
* Grants permission to list all shares created for a profile
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListProfileShares.html
*/
toListProfileShares() {
return this.to('ListProfileShares');
}
/**
* Grants permission to list the profiles available to this account
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListProfiles.html
*/
toListProfiles() {
return this.to('ListProfiles');
}
/**
* Grants permission to list the answers from the specified review template lens review
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListReviewTemplateAnswers.html
*/
toListReviewTemplateAnswers() {
return this.to('ListReviewTemplateAnswers');
}
/**
* Grants permission to list the review templates available to this account
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListReviewTemplates.html
*/
toListReviewTemplates() {
return this.to('ListReviewTemplates');
}
/**
* Grants permission to list the workload share invitations of the specified account or user
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListShareInvitations.html
*/
toListShareInvitations() {
return this.to('ListShareInvitations');
}
/**
* Grants permission to list tags for a Well-Architected resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListTagsForResource.html
*/
toListTagsForResource() {
return this.to('ListTagsForResource');
}
/**
* Grants permission to list all shares created for a review template
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListTemplateShares.html
*/
toListTemplateShares() {
return this.to('ListTemplateShares');
}
/**
* Grants permission to list the workload shares of the specified workload
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListWorkloadShares.html
*/
toListWorkloadShares() {
return this.to('ListWorkloadShares');
}
/**
* Grants permission to list the workloads in this account
*
* Access Level: List
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ListWorkloads.html
*/
toListWorkloads() {
return this.to('ListWorkloads');
}
/**
* Grants permission to put feedback on a recommendation
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_PutAgentRecommendationFeedback.html
*/
toPutAgentRecommendationFeedback() {
return this.to('PutAgentRecommendationFeedback');
}
/**
* Grants permission to start a recommendation generation process
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_StartAgentRecommendationGeneration.html
*/
toStartAgentRecommendationGeneration() {
return this.to('StartAgentRecommendationGeneration');
}
/**
* Grants permission to tag a Well-Architected resource
*
* Access Level: Tagging, Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_TagResource.html
*/
toTagResource() {
return this.to('TagResource');
}
/**
* Grants permission to untag a Well-Architected resource
*
* Access Level: Tagging, Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UntagResource.html
*/
toUntagResource() {
return this.to('UntagResource');
}
/**
* Grants permission to update a context associated with a profile
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateAgentContext.html
*/
toUpdateAgentContext() {
return this.to('UpdateAgentContext');
}
/**
* Grants permission to update a goal associated with a profile
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateAgentGoal.html
*/
toUpdateAgentGoal() {
return this.to('UpdateAgentGoal');
}
/**
* Grants permission to update an agent profile
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateAgentProfile.html
*/
toUpdateAgentProfile() {
return this.to('UpdateAgentProfile');
}
/**
* Grants permission to update the status of a recommendation
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateAgentRecommendationStatus.html
*/
toUpdateAgentRecommendationStatus() {
return this.to('UpdateAgentRecommendationStatus');
}
/**
* Grants permission to update properties of the specified answer
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateAnswer.html
*/
toUpdateAnswer() {
return this.to('UpdateAnswer');
}
/**
* Grants permission to manage all settings for the account
*
* Access Level: Write
*
* Possible conditions:
* - .ifJiraProjectKey()
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateGlobalSettings.html
*/
toUpdateGlobalSettings() {
return this.to('UpdateGlobalSettings');
}
/**
* Grants permission to update properties of the integration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateIntegration.html
*/
toUpdateIntegration() {
return this.to('UpdateIntegration');
}
/**
* Grants permission to update properties of the specified lens review
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateLensReview.html
*/
toUpdateLensReview() {
return this.to('UpdateLensReview');
}
/**
* Grants permission to update properties of the specified profile
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateProfile.html
*/
toUpdateProfile() {
return this.to('UpdateProfile');
}
/**
* Grants permission to update properties of the specified review template
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateReviewTemplate.html
*/
toUpdateReviewTemplate() {
return this.to('UpdateReviewTemplate');
}
/**
* Grants permission to update properties of the specified review template answer
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateReviewTemplateAnswer.html
*/
toUpdateReviewTemplateAnswer() {
return this.to('UpdateReviewTemplateAnswer');
}
/**
* Grants permission to update properties of the specified review template lens review
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateReviewTemplateLensReview.html
*/
toUpdateReviewTemplateLensReview() {
return this.to('UpdateReviewTemplateLensReview');
}
/**
* Grants permission to update status of the specified workload share invitation
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateShareInvitation.html
*/
toUpdateShareInvitation() {
return this.to('UpdateShareInvitation');
}
/**
* Grants permission to update properties of the specified workload
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateWorkload.html
*/
toUpdateWorkload() {
return this.to('UpdateWorkload');
}
/**
* Grants permission to update properties of the specified workload share
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpdateWorkloadShare.html
*/
toUpdateWorkloadShare() {
return this.to('UpdateWorkloadShare');
}
/**
* Grants permission to upgrade the specified lens review to use the latest version of the associated lens
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpgradeLensReview.html
*/
toUpgradeLensReview() {
return this.to('UpgradeLensReview');
}
/**
* Grants permission to upgrade the specified workload to use the latest version of the associated profile
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpgradeProfileVersion.html
*/
toUpgradeProfileVersion() {
return this.to('UpgradeProfileVersion');
}
/**
* Grants permission to upgrade the specified lens review of the specified review template
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_UpgradeReviewTemplateLensReview.html
*/
toUpgradeReviewTemplateLensReview() {
return this.to('UpgradeReviewTemplateLensReview');
}
/**
* Grants permission to configure the integration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/wellarchitected/latest/userguide/setting-up-jira.html
*/
toConfigureIntegration() {
return this.to('ConfigureIntegration');
}
/**
* Adds a resource of type agent-profile to the statement
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_AgentProfileSummary.html
*
* @param profileName - Identifier for the profileName.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onAgentProfile(profileName, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:wellarchitected:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:agent-profile/${profileName}`);
}
/**
* Adds a resource of type agent-recommendation to the statement
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_AgentRecommendationSummary.html
*
* @param resourceId - Identifier for the resourceId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onAgentRecommendation(resourceId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:wellarchitected:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:agent-recommendation/${resourceId}`);
}
/**
* Adds a resource of type lens to the statement
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_Lens.html
*
* @param resourceId - Identifier for the resourceId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onLens(resourceId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:wellarchitected:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:lens/${resourceId}`);
}
/**
* Adds a resource of type profile to the statement
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_Profile.html
*
* @param resourceId - Identifier for the resourceId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onProfile(resourceId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:wellarchitected:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:profile/${resourceId}`);
}
/**
* Adds a resource of type review-template to the statement
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_ReviewTemplate.html
*
* @param resourceId - Identifier for the resourceId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onReviewTemplate(resourceId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:wellarchitected:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:review-template/${resourceId}`);
}
/**
* Adds a resource of type workload to the statement
*
* https://docs.aws.amazon.com/wellarchitected/latest/APIReference/API_Workload.html
*
* @param resourceId - Identifier for the resourceId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onWorkload(resourceId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:wellarchitected:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:workload/${resourceId}`);
}
/**
* Filters access by tag key-value pairs in the request
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag
*
* Applies to actions:
* - .toCreateAgentProfile()
* - .toCreateProfile()
* - .toCreateReviewTemplate()
* - .toCreateWorkload()
* - .toImportLens()
* - .toTagResource()
*
* @param tagKey The tag key to check
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAwsRequestTag(tagKey, value, operator) {
return this.if(`aws:RequestTag/${tagKey}`, value, operator ?? 'StringLike');
}
/**
* Filters access by tag key-value pairs attached to the resource
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag
*
* Applies to actions:
* - .toAssociateLenses()
* - .toAssociateProfiles()
* - .toCreateAgentContext()
* - .toCreateAgentGoal()
* - .toCreateLensShare()
* - .toCreateLensVersion()
* - .toCreateMilestone()
* - .toCreateProfileShare()
* - .toCreateTemplateShare()
* - .toCreateWorkloadShare()
* - .toDeleteAgentContext()
* - .toDeleteAgentGoal()
* - .toDeleteAgentProfile()
* - .toDeleteLens()
* - .toDeleteLensShare()
* - .toDeleteProfile()
* - .toDeleteProfileShare()
* - .toDeleteReviewTemplate()
* - .toDeleteTemplateShare()
* - .toDeleteWorkload()
* - .toDeleteWorkloadShare()
* - .toDisassociateLenses()
* - .toDisassociateProfiles()
* - .toExportLens()
* - .toGetAgentContext()
* - .toGetAgentGoal()
* - .toGetAgentProfile()
* - .toGetAgentRecommendation()
* - .toGetAgentRecommendationGeneration()
* - .toGetAnswer()
* - .toGetLens()
* - .toGetLensReview()
* - .toGetLensReviewReport()
* - .toGetLensVersionDifference()
* - .toGetMilestone()
* - .toGetProfile()
* - .toGetReviewTemplate()
* - .toGetReviewTemplateAnswer()
* - .toGetReviewTemplateLensReview()
* - .toGetWorkload()
* - .toListAgentContexts()
* - .toListAgentGoals()
* - .toListAgentRecommendationGenerations()
* - .toListAgentRecommendationItems()
* - .toListAgentRecommendations()
* - .toListAnswers()
* - .toListCheckDetails()
* - .toListCheckSummaries()
* - .toListLensReviewImprovements()
* - .toListLensReviews()
* - .toListLensShares()
* - .toListMilestones()
* - .toListProfileShares()
* - .toListReviewTemplateAnswers()
* - .toListTagsForResource()
* - .toListTemplateShares()
* - .toListWorkloadShares()
* - .toPutAgentRecommendationFeedback()
* - .toStartAgentRecommendationGeneration()
* - .toTagResource()
* - .toUntagResource()
* - .toUpdateAgentContext()
* - .toUpdateAgentGoal()
* - .toUpdateAgentProfile()
* - .toUpdateAgentRecommendationStatus()
* - .toUpdateAnswer()
* - .toUpdateIntegration()
* - .toUpdateLensReview()
* - .toUpdateProfile()
* - .toUpdateReviewTemplate()
* - .toUpdateReviewTemplateAnswer()
* - .toUpdateReviewTemplateLensReview()
* - .toUpdateWorkload()
* - .toUpdateWorkloadShare()
* - .toUpgradeLensReview()
* - .toUpgradeProfileVersion()
* - .toUpgradeReviewTemplateLensReview()
*
* Applies to resource types:
* - agent-profile
* - agent-recommendation
* - lens
* - profile
* - review-template
* - workload
*
* @param tagKey The tag key to check
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAwsResourceTag(tagKey, value, operator) {
return this.if(`aws:ResourceTag/${tagKey}`, value, operator ?? 'StringLike');
}
/**
* Filters access by tag keys in the request
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys
*
* Applies to actions:
* - .toCreateAgentProfile()
* - .toCreateProfile()
* - .toCreateReviewTemplate()
* - .toCreateWorkload()
* - .toImportLens()
* - .toTagResource()
* - .toUntagResource()
*
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAwsTagKeys(value, operator) {
return this.if(`aws:TagKeys`, value, operator ?? 'StringLike');
}
/**
* Filters access by project key
*
* https://docs.aws.amazon.com/wellarchitected/latest/userguide/security_iam_id-based-policy-examples.html
*
* Applies to actions:
* - .toCreateWorkload()
* - .toUpdateGlobalSettings()
* - .toUpdateWorkload()
*
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifJiraProjectKey(value, operator) {
return this.if(`JiraProjectKey`, value, operator ?? 'StringLike');
}
/**
* Statement provider for service [wellarchitected](https://docs.aws.amazon.com/service-authorization/latest/reference/list_wellarchitected.html).
*
*/
constructor(props) {
super(props);
this.servicePrefix = 'wellarchitected';
this.accessLevelList = {
Write: [
'AssociateLenses',
'AssociateProfiles',
'CreateAgentContext',
'CreateAgentGoal',
'CreateAgentProfile',
'CreateLensShare',
'CreateLensVersion',
'CreateMilestone',
'CreateProfile',
'CreateProfileShare',
'CreateReviewTemplate',
'CreateTemplateShare',
'CreateWorkload',
'CreateWorkloadShare',
'DeleteAgentContext',
'DeleteAgentGoal',
'DeleteAgentProfile',
'DeleteLens',
'DeleteLensShare',
'DeleteProfile',
'DeleteProfileShare',
'DeleteReviewTemplate',
'DeleteTemplateShare',
'DeleteWorkload',
'DeleteWorkloadShare',
'DisassociateLenses',
'DisassociateProfiles',
'ImportLens',
'PutAgentRecommendationFeedback',
'StartAgentRecommendationGeneration',
'TagResource',
'UntagResource',
'UpdateAgentContext',
'UpdateAgentGoal',
'UpdateAgentProfile',
'UpdateAgentRecommendationStatus',
'UpdateAnswer',
'UpdateGlobalSettings',
'UpdateIntegration',
'UpdateLensReview',
'UpdateProfile',
'UpdateReviewTemplate',
'UpdateReviewTemplateAnswer',
'UpdateReviewTemplateLensReview',
'UpdateShareInvitation',
'UpdateWorkload',
'UpdateWorkloadShare',
'UpgradeLensReview',
'UpgradeProfileVersion',
'UpgradeReviewTemplateLensReview',
'ConfigureIntegration'
],
Read: [
'ExportLens',
'GetAgentContext',
'GetAgentGoal',
'GetAgentProfile',
'GetAgentRecommendation',
'GetAgentRecommendationGeneration',
'GetAnswer',
'GetConsolidatedReport',
'GetGlobalSettings',
'GetLens',
'GetLensReview',
'GetLensReviewReport',
'GetLensVersionDifference',
'GetMilestone',
'GetProfile',
'GetProfileTemplate',
'GetReviewTemplate',
'GetReviewTemplateAnswer',
'GetReviewTemplateLensReview',
'GetWorkload',
'ListAgentContexts',
'ListAgentGoals',
'ListAgentProfiles',
'ListAgentRecommendationGenerations',
'ListAgentRecommendationItems',
'ListAgentRecommendations',
'ListTagsForResource'
],
List: [
'ListAnswers',
'ListCheckDetails',
'ListCheckSummaries',
'ListLensReviewImprovements',
'ListLensReviews',
'ListLensShares',
'ListLenses',
'ListMilestones',
'ListNotifications',
'ListProfileNotifications',
'ListProfileShares',
'ListProfiles',
'ListReviewTemplateAnswers',
'ListReviewTemplates',
'ListShareInvitations',
'ListTemplateShares',
'ListWorkloadShares',
'ListWorkloads'
],
Tagging: [
'TagResource',
'UntagResource'
]
};
}
}
exports.Wellarchitected = Wellarchitected;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2VsbGFyY2hpdGVjdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsid2VsbGFyY2hpdGVjdGVkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLHlDQUF5RDtBQUd6RDs7OztHQUlHO0FBQ0gsTUFBYSxlQUFnQixTQUFRLHdCQUFlO0lBR2xEOzs7Ozs7T0FNRztJQUNJLGlCQUFpQjtRQUN0QixPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsaUJBQWlCLENBQUMsQ0FB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