iam-floyd
Version:
AWS IAM policy statement generator with fluent interface
1,453 lines • 173 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Proton = void 0;
const shared_1 = require("../../shared");
/**
* Statement provider for service [proton](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsproton.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
class Proton extends shared_1.PolicyStatement {
/**
* Statement provider for service [proton](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsproton.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
constructor(sid) {
super(sid);
this.servicePrefix = 'proton';
this.accessLevelList = {
Write: [
'AcceptEnvironmentAccountConnection',
'CancelComponentDeployment',
'CancelEnvironmentDeployment',
'CancelServiceInstanceDeployment',
'CancelServicePipelineDeployment',
'CreateComponent',
'CreateEnvironment',
'CreateEnvironmentAccountConnection',
'CreateEnvironmentTemplate',
'CreateEnvironmentTemplateMajorVersion',
'CreateEnvironmentTemplateMinorVersion',
'CreateEnvironmentTemplateVersion',
'CreateRepository',
'CreateService',
'CreateServiceInstance',
'CreateServiceSyncConfig',
'CreateServiceTemplate',
'CreateServiceTemplateMajorVersion',
'CreateServiceTemplateMinorVersion',
'CreateServiceTemplateVersion',
'CreateTemplateSyncConfig',
'DeleteAccountRoles',
'DeleteComponent',
'DeleteDeployment',
'DeleteEnvironment',
'DeleteEnvironmentAccountConnection',
'DeleteEnvironmentTemplate',
'DeleteEnvironmentTemplateMajorVersion',
'DeleteEnvironmentTemplateMinorVersion',
'DeleteEnvironmentTemplateVersion',
'DeleteRepository',
'DeleteService',
'DeleteServiceSyncConfig',
'DeleteServiceTemplate',
'DeleteServiceTemplateMajorVersion',
'DeleteServiceTemplateMinorVersion',
'DeleteServiceTemplateVersion',
'DeleteTemplateSyncConfig',
'NotifyResourceDeploymentStatusChange',
'RejectEnvironmentAccountConnection',
'UpdateAccountRoles',
'UpdateAccountSettings',
'UpdateComponent',
'UpdateEnvironment',
'UpdateEnvironmentAccountConnection',
'UpdateEnvironmentTemplate',
'UpdateEnvironmentTemplateMajorVersion',
'UpdateEnvironmentTemplateMinorVersion',
'UpdateEnvironmentTemplateVersion',
'UpdateService',
'UpdateServiceInstance',
'UpdateServicePipeline',
'UpdateServiceSyncBlocker',
'UpdateServiceSyncConfig',
'UpdateServiceTemplate',
'UpdateServiceTemplateMajorVersion',
'UpdateServiceTemplateMinorVersion',
'UpdateServiceTemplateVersion',
'UpdateTemplateSyncConfig'
],
Read: [
'GetAccountRoles',
'GetAccountSettings',
'GetComponent',
'GetDeployment',
'GetEnvironment',
'GetEnvironmentAccountConnection',
'GetEnvironmentTemplate',
'GetEnvironmentTemplateMajorVersion',
'GetEnvironmentTemplateMinorVersion',
'GetEnvironmentTemplateVersion',
'GetRepository',
'GetRepositorySyncStatus',
'GetResourceTemplateVersionStatusCounts',
'GetResourcesSummary',
'GetService',
'GetServiceInstance',
'GetServiceInstanceSyncStatus',
'GetServiceSyncBlockerSummary',
'GetServiceSyncConfig',
'GetServiceTemplate',
'GetServiceTemplateMajorVersion',
'GetServiceTemplateMinorVersion',
'GetServiceTemplateVersion',
'GetTemplateSyncConfig',
'GetTemplateSyncStatus',
'ListTagsForResource'
],
List: [
'ListComponentOutputs',
'ListComponentProvisionedResources',
'ListComponents',
'ListDeployments',
'ListEnvironmentAccountConnections',
'ListEnvironmentOutputs',
'ListEnvironmentProvisionedResources',
'ListEnvironmentTemplateMajorVersions',
'ListEnvironmentTemplateMinorVersions',
'ListEnvironmentTemplateVersions',
'ListEnvironmentTemplates',
'ListEnvironments',
'ListRepositories',
'ListRepositorySyncDefinitions',
'ListServiceInstanceOutputs',
'ListServiceInstanceProvisionedResources',
'ListServiceInstances',
'ListServicePipelineOutputs',
'ListServicePipelineProvisionedResources',
'ListServiceTemplateMajorVersions',
'ListServiceTemplateMinorVersions',
'ListServiceTemplateVersions',
'ListServiceTemplates',
'ListServices'
],
Tagging: [
'TagResource',
'UntagResource'
]
};
}
/**
* Grants permission to reject an environment account connection request from another environment account
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_AcceptEnvironmentAccountConnection.html
*/
toAcceptEnvironmentAccountConnection() {
return this.to('AcceptEnvironmentAccountConnection');
}
/**
* Grants permission to cancel component deployment
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CancelComponentDeployment.html
*/
toCancelComponentDeployment() {
return this.to('CancelComponentDeployment');
}
/**
* Grants permission to cancel an environment deployment
*
* Access Level: Write
*
* Possible conditions:
* - .ifEnvironmentTemplate()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CancelEnvironmentDeployment.html
*/
toCancelEnvironmentDeployment() {
return this.to('CancelEnvironmentDeployment');
}
/**
* Grants permission to cancel a service instance deployment
*
* Access Level: Write
*
* Possible conditions:
* - .ifServiceTemplate()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CancelServiceInstanceDeployment.html
*/
toCancelServiceInstanceDeployment() {
return this.to('CancelServiceInstanceDeployment');
}
/**
* Grants permission to cancel a service pipeline deployment
*
* Access Level: Write
*
* Possible conditions:
* - .ifServiceTemplate()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CancelServicePipelineDeployment.html
*/
toCancelServicePipelineDeployment() {
return this.to('CancelServicePipelineDeployment');
}
/**
* Grants permission to create component
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateComponent.html
*/
toCreateComponent() {
return this.to('CreateComponent');
}
/**
* Grants permission to create an environment
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
* - .ifEnvironmentTemplate()
*
* Dependent actions:
* - iam:PassRole
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateEnvironment.html
*/
toCreateEnvironment() {
return this.to('CreateEnvironment');
}
/**
* Grants permission to create an environment account connection
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateEnvironmentAccountConnection.html
*/
toCreateEnvironmentAccountConnection() {
return this.to('CreateEnvironmentAccountConnection');
}
/**
* Grants permission to create an environment template
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateEnvironmentTemplate.html
*/
toCreateEnvironmentTemplate() {
return this.to('CreateEnvironmentTemplate');
}
/**
* Grants permission to create an environment template major version. DEPRECATED - use CreateEnvironmentTemplateVersion instead
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateEnvironmentTemplateMajorVersion.html
*/
toCreateEnvironmentTemplateMajorVersion() {
return this.to('CreateEnvironmentTemplateMajorVersion');
}
/**
* Grants permission to create an environment template minor version. DEPRECATED - use CreateEnvironmentTemplateVersion instead
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateEnvironmentTemplateMinorVersion.html
*/
toCreateEnvironmentTemplateMinorVersion() {
return this.to('CreateEnvironmentTemplateMinorVersion');
}
/**
* Grants permission to create an environment template version
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateEnvironmentTemplateVersion.html
*/
toCreateEnvironmentTemplateVersion() {
return this.to('CreateEnvironmentTemplateVersion');
}
/**
* Grants permission to create a repository
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateRepository.html
*/
toCreateRepository() {
return this.to('CreateRepository');
}
/**
* Grants permission to create a service
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
* - .ifServiceTemplate()
*
* Dependent actions:
* - codestar-connections:PassConnection
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateService.html
*/
toCreateService() {
return this.to('CreateService');
}
/**
* Grants permission to create a service instance
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
* - .ifServiceTemplate()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateServiceInstance.html
*/
toCreateServiceInstance() {
return this.to('CreateServiceInstance');
}
/**
* Grants permission to create a service sync config
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateServiceSyncConfig.html
*/
toCreateServiceSyncConfig() {
return this.to('CreateServiceSyncConfig');
}
/**
* Grants permission to create a service template
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateServiceTemplate.html
*/
toCreateServiceTemplate() {
return this.to('CreateServiceTemplate');
}
/**
* Grants permission to create a service template major version. DEPRECATED - use CreateServiceTemplateVersion instead
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateServiceTemplateMajorVersion.html
*/
toCreateServiceTemplateMajorVersion() {
return this.to('CreateServiceTemplateMajorVersion');
}
/**
* Grants permission to create a service template minor version. DEPRECATED - use CreateServiceTemplateVersion instead
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateServiceTemplateMinorVersion.html
*/
toCreateServiceTemplateMinorVersion() {
return this.to('CreateServiceTemplateMinorVersion');
}
/**
* Grants permission to create a service template version
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateServiceTemplateVersion.html
*/
toCreateServiceTemplateVersion() {
return this.to('CreateServiceTemplateVersion');
}
/**
* Grants permission to create a template sync config
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_CreateTemplateSyncConfig.html
*/
toCreateTemplateSyncConfig() {
return this.to('CreateTemplateSyncConfig');
}
/**
* Grants permission to delete account roles. DEPRECATED - use UpdateAccountSettings instead
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteAccountRoles.html
*/
toDeleteAccountRoles() {
return this.to('DeleteAccountRoles');
}
/**
* Grants permission to delete component
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteComponent.html
*/
toDeleteComponent() {
return this.to('DeleteComponent');
}
/**
* Grants permission to delete a deployment
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteDeployment.html
*/
toDeleteDeployment() {
return this.to('DeleteDeployment');
}
/**
* Grants permission to delete an environment
*
* Access Level: Write
*
* Possible conditions:
* - .ifEnvironmentTemplate()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteEnvironment.html
*/
toDeleteEnvironment() {
return this.to('DeleteEnvironment');
}
/**
* Grants permission to delete an environment account connection
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteEnvironmentAccountConnection.html
*/
toDeleteEnvironmentAccountConnection() {
return this.to('DeleteEnvironmentAccountConnection');
}
/**
* Grants permission to delete an environment template
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteEnvironmentTemplate.html
*/
toDeleteEnvironmentTemplate() {
return this.to('DeleteEnvironmentTemplate');
}
/**
* Grants permission to delete an environment template major version. DEPRECATED - use DeleteEnvironmentTemplateVersion instead
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteEnvironmentTemplateMajorVersion.html
*/
toDeleteEnvironmentTemplateMajorVersion() {
return this.to('DeleteEnvironmentTemplateMajorVersion');
}
/**
* Grants permission to delete an environment template minor version. DEPRECATED - use DeleteEnvironmentTemplateVersion instead
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteEnvironmentTemplateMinorVersion.html
*/
toDeleteEnvironmentTemplateMinorVersion() {
return this.to('DeleteEnvironmentTemplateMinorVersion');
}
/**
* Grants permission to delete an environment template version
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteEnvironmentTemplateVersion.html
*/
toDeleteEnvironmentTemplateVersion() {
return this.to('DeleteEnvironmentTemplateVersion');
}
/**
* Grants permission to delete a repository
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteRepository.html
*/
toDeleteRepository() {
return this.to('DeleteRepository');
}
/**
* Grants permission to delete a service
*
* Access Level: Write
*
* Possible conditions:
* - .ifServiceTemplate()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteService.html
*/
toDeleteService() {
return this.to('DeleteService');
}
/**
* Grants permission to delete a service sync config
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteServiceSyncConfig.html
*/
toDeleteServiceSyncConfig() {
return this.to('DeleteServiceSyncConfig');
}
/**
* Grants permission to delete a service template
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteServiceTemplate.html
*/
toDeleteServiceTemplate() {
return this.to('DeleteServiceTemplate');
}
/**
* Grants permission to delete a service template major version. DEPRECATED - use DeleteServiceTemplateVersion instead
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteServiceTemplateMajorVersion.html
*/
toDeleteServiceTemplateMajorVersion() {
return this.to('DeleteServiceTemplateMajorVersion');
}
/**
* Grants permission to delete a service template minor version. DEPRECATED - use DeleteServiceTemplateVersion instead
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteServiceTemplateMinorVersion.html
*/
toDeleteServiceTemplateMinorVersion() {
return this.to('DeleteServiceTemplateMinorVersion');
}
/**
* Grants permission to delete a service template version
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteServiceTemplateVersion.html
*/
toDeleteServiceTemplateVersion() {
return this.to('DeleteServiceTemplateVersion');
}
/**
* Grants permission to delete a TemplateSyncConfig
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_DeleteTemplateSyncConfig.html
*/
toDeleteTemplateSyncConfig() {
return this.to('DeleteTemplateSyncConfig');
}
/**
* Grants permission to get account roles. DEPRECATED - use GetAccountSettings instead
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetAccountRoles.html
*/
toGetAccountRoles() {
return this.to('GetAccountRoles');
}
/**
* Grants permission to describe the account settings
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetAccountSettings.html
*/
toGetAccountSettings() {
return this.to('GetAccountSettings');
}
/**
* Grants permission to describe a component
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetComponent.html
*/
toGetComponent() {
return this.to('GetComponent');
}
/**
* Grants permission to describe a deployment
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetDeployment.html
*/
toGetDeployment() {
return this.to('GetDeployment');
}
/**
* Grants permission to describe an environment
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetEnvironment.html
*/
toGetEnvironment() {
return this.to('GetEnvironment');
}
/**
* Grants permission to describe an environment account connection
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetEnvironmentAccountConnection.html
*/
toGetEnvironmentAccountConnection() {
return this.to('GetEnvironmentAccountConnection');
}
/**
* Grants permission to describe an environment template
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetEnvironmentTemplate.html
*/
toGetEnvironmentTemplate() {
return this.to('GetEnvironmentTemplate');
}
/**
* Grants permission to get an environment template major version. DEPRECATED - use GetEnvironmentTemplateVersion instead
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetEnvironmentTemplateMajorVersion.html
*/
toGetEnvironmentTemplateMajorVersion() {
return this.to('GetEnvironmentTemplateMajorVersion');
}
/**
* Grants permission to get an environment template minor version. DEPRECATED - use GetEnvironmentTemplateVersion instead
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetEnvironmentTemplateMinorVersion.html
*/
toGetEnvironmentTemplateMinorVersion() {
return this.to('GetEnvironmentTemplateMinorVersion');
}
/**
* Grants permission to describe an environment template version
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetEnvironmentTemplateVersion.html
*/
toGetEnvironmentTemplateVersion() {
return this.to('GetEnvironmentTemplateVersion');
}
/**
* Grants permission to describe a repository
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetRepository.html
*/
toGetRepository() {
return this.to('GetRepository');
}
/**
* Grants permission to get the latest sync status for a repository
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetRepositorySyncStatus.html
*/
toGetRepositorySyncStatus() {
return this.to('GetRepositorySyncStatus');
}
/**
* Grants permission to list resource template version status counts
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetResourceTemplateVersionStatusCounts.html
*/
toGetResourceTemplateVersionStatusCounts() {
return this.to('GetResourceTemplateVersionStatusCounts');
}
/**
* Grants permission to get resources summary
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetResourcesSummary.html
*/
toGetResourcesSummary() {
return this.to('GetResourcesSummary');
}
/**
* Grants permission to describe a service
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetService.html
*/
toGetService() {
return this.to('GetService');
}
/**
* Grants permission to describe a service instance
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetServiceInstance.html
*/
toGetServiceInstance() {
return this.to('GetServiceInstance');
}
/**
* Grants permission to describe the sync status of a service instance
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetServiceInstanceSyncStatus.html
*/
toGetServiceInstanceSyncStatus() {
return this.to('GetServiceInstanceSyncStatus');
}
/**
* Grants permission to describe service sync blockers on a service or service instance
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetServiceSyncBlockerSummary.html
*/
toGetServiceSyncBlockerSummary() {
return this.to('GetServiceSyncBlockerSummary');
}
/**
* Grants permission to describe a service sync config
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetServiceSyncConfig.html
*/
toGetServiceSyncConfig() {
return this.to('GetServiceSyncConfig');
}
/**
* Grants permission to describe a service template
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetServiceTemplate.html
*/
toGetServiceTemplate() {
return this.to('GetServiceTemplate');
}
/**
* Grants permission to get a service template major version. DEPRECATED - use GetServiceTemplateVersion instead
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetServiceTemplateMajorVersion.html
*/
toGetServiceTemplateMajorVersion() {
return this.to('GetServiceTemplateMajorVersion');
}
/**
* Grants permission to get a service template minor version. DEPRECATED - use GetServiceTemplateVersion instead
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetServiceTemplateMinorVersion.html
*/
toGetServiceTemplateMinorVersion() {
return this.to('GetServiceTemplateMinorVersion');
}
/**
* Grants permission to describe a service template version
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetServiceTemplateVersion.html
*/
toGetServiceTemplateVersion() {
return this.to('GetServiceTemplateVersion');
}
/**
* Grants permission to describe a TemplateSyncConfig
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetTemplateSyncConfig.html
*/
toGetTemplateSyncConfig() {
return this.to('GetTemplateSyncConfig');
}
/**
* Grants permission to describe the sync status of a template
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_GetTemplateSyncStatus.html
*/
toGetTemplateSyncStatus() {
return this.to('GetTemplateSyncStatus');
}
/**
* Grants permission to list component outputs
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListComponentOutputs.html
*/
toListComponentOutputs() {
return this.to('ListComponentOutputs');
}
/**
* Grants permission to list component provisioned resources
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListComponentProvisionedResources.html
*/
toListComponentProvisionedResources() {
return this.to('ListComponentProvisionedResources');
}
/**
* Grants permission to list components
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListComponents.html
*/
toListComponents() {
return this.to('ListComponents');
}
/**
* Grants permission to list deployments
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListDeployments.html
*/
toListDeployments() {
return this.to('ListDeployments');
}
/**
* Grants permission to list environment account connections
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListEnvironmentAccountConnections.html
*/
toListEnvironmentAccountConnections() {
return this.to('ListEnvironmentAccountConnections');
}
/**
* Grants permission to list environment outputs
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListEnvironmentOutputs.html
*/
toListEnvironmentOutputs() {
return this.to('ListEnvironmentOutputs');
}
/**
* Grants permission to list environment provisioned resources
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListEnvironmentProvisionedResources.html
*/
toListEnvironmentProvisionedResources() {
return this.to('ListEnvironmentProvisionedResources');
}
/**
* Grants permission to list environment template major versions. DEPRECATED - use ListEnvironmentTemplateVersions instead
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListEnvironmentTemplateMajorVersions.html
*/
toListEnvironmentTemplateMajorVersions() {
return this.to('ListEnvironmentTemplateMajorVersions');
}
/**
* Grants permission to list an environment template minor versions. DEPRECATED - use ListEnvironmentTemplateVersions instead
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListEnvironmentTemplateMinorVersions.html
*/
toListEnvironmentTemplateMinorVersions() {
return this.to('ListEnvironmentTemplateMinorVersions');
}
/**
* Grants permission to list environment template versions
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListEnvironmentTemplateVersions.html
*/
toListEnvironmentTemplateVersions() {
return this.to('ListEnvironmentTemplateVersions');
}
/**
* Grants permission to list environment templates
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListEnvironmentTemplates.html
*/
toListEnvironmentTemplates() {
return this.to('ListEnvironmentTemplates');
}
/**
* Grants permission to list environments
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListEnvironments.html
*/
toListEnvironments() {
return this.to('ListEnvironments');
}
/**
* Grants permission to list repositories
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListRepositories.html
*/
toListRepositories() {
return this.to('ListRepositories');
}
/**
* Grants permission to list repository sync definitions
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListRepositorySyncDefinitions.html
*/
toListRepositorySyncDefinitions() {
return this.to('ListRepositorySyncDefinitions');
}
/**
* Grants permission to list service instance outputs
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListServiceInstanceOutputs.html
*/
toListServiceInstanceOutputs() {
return this.to('ListServiceInstanceOutputs');
}
/**
* Grants permission to list service instance provisioned resources
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListServiceInstanceProvisionedResources.html
*/
toListServiceInstanceProvisionedResources() {
return this.to('ListServiceInstanceProvisionedResources');
}
/**
* Grants permission to list service instances
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListServiceInstances.html
*/
toListServiceInstances() {
return this.to('ListServiceInstances');
}
/**
* Grants permission to list service pipeline outputs
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListServicePipelineOutputs.html
*/
toListServicePipelineOutputs() {
return this.to('ListServicePipelineOutputs');
}
/**
* Grants permission to list service pipeline provisioned resources
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListServicePipelineProvisionedResources.html
*/
toListServicePipelineProvisionedResources() {
return this.to('ListServicePipelineProvisionedResources');
}
/**
* Grants permission to list service template major versions. DEPRECATED - use ListServiceTemplateVersions instead
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListServiceTemplateMajorVersions.html
*/
toListServiceTemplateMajorVersions() {
return this.to('ListServiceTemplateMajorVersions');
}
/**
* Grants permission to list service template minor versions. DEPRECATED - use ListServiceTemplateVersions instead
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListServiceTemplateMinorVersions.html
*/
toListServiceTemplateMinorVersions() {
return this.to('ListServiceTemplateMinorVersions');
}
/**
* Grants permission to list service template versions
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListServiceTemplateVersions.html
*/
toListServiceTemplateVersions() {
return this.to('ListServiceTemplateVersions');
}
/**
* Grants permission to list service templates
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListServiceTemplates.html
*/
toListServiceTemplates() {
return this.to('ListServiceTemplates');
}
/**
* Grants permission to list services
*
* Access Level: List
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListServices.html
*/
toListServices() {
return this.to('ListServices');
}
/**
* Grants permission to list tags of a resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_ListTagsForResource.html
*/
toListTagsForResource() {
return this.to('ListTagsForResource');
}
/**
* Grants permission to notify Proton of resource deployment status changes
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_NotifyResourceDeploymentStatusChange.html
*/
toNotifyResourceDeploymentStatusChange() {
return this.to('NotifyResourceDeploymentStatusChange');
}
/**
* Grants permission to reject an environment account connection request from another environment account
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_RejectEnvironmentAccountConnection.html
*/
toRejectEnvironmentAccountConnection() {
return this.to('RejectEnvironmentAccountConnection');
}
/**
* Grants permission to add tags to a resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_TagResource.html
*/
toTagResource() {
return this.to('TagResource');
}
/**
* Grants permission to remove tags from a resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UntagResource.html
*/
toUntagResource() {
return this.to('UntagResource');
}
/**
* Grants permission to update account roles. DEPRECATED - use UpdateAccountSettings instead
*
* Access Level: Write
*
* Dependent actions:
* - iam:PassRole
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateAccountRoles.html
*/
toUpdateAccountRoles() {
return this.to('UpdateAccountRoles');
}
/**
* Grants permission to update the account settings
*
* Access Level: Write
*
* Dependent actions:
* - iam:PassRole
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateAccountSettings.html
*/
toUpdateAccountSettings() {
return this.to('UpdateAccountSettings');
}
/**
* Grants permission to update component
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateComponent.html
*/
toUpdateComponent() {
return this.to('UpdateComponent');
}
/**
* Grants permission to update an environment
*
* Access Level: Write
*
* Possible conditions:
* - .ifEnvironmentTemplate()
*
* Dependent actions:
* - iam:PassRole
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateEnvironment.html
*/
toUpdateEnvironment() {
return this.to('UpdateEnvironment');
}
/**
* Grants permission to update an environment account connection
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateEnvironmentAccountConnection.html
*/
toUpdateEnvironmentAccountConnection() {
return this.to('UpdateEnvironmentAccountConnection');
}
/**
* Grants permission to update an environment template
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateEnvironmentTemplate.html
*/
toUpdateEnvironmentTemplate() {
return this.to('UpdateEnvironmentTemplate');
}
/**
* Grants permission to update an environment template major version. DEPRECATED - use UpdateEnvironmentTemplateVersion instead
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateEnvironmentTemplateMajorVersion.html
*/
toUpdateEnvironmentTemplateMajorVersion() {
return this.to('UpdateEnvironmentTemplateMajorVersion');
}
/**
* Grants permission to update an environment template minor version. DEPRECATED - use UpdateEnvironmentTemplateVersion instead
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateEnvironmentTemplateMinorVersion.html
*/
toUpdateEnvironmentTemplateMinorVersion() {
return this.to('UpdateEnvironmentTemplateMinorVersion');
}
/**
* Grants permission to update an environment template version
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateEnvironmentTemplateVersion.html
*/
toUpdateEnvironmentTemplateVersion() {
return this.to('UpdateEnvironmentTemplateVersion');
}
/**
* Grants permission to update a service
*
* Access Level: Write
*
* Possible conditions:
* - .ifServiceTemplate()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateService.html
*/
toUpdateService() {
return this.to('UpdateService');
}
/**
* Grants permission to update a service instance
*
* Access Level: Write
*
* Possible conditions:
* - .ifServiceTemplate()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateServiceInstance.html
*/
toUpdateServiceInstance() {
return this.to('UpdateServiceInstance');
}
/**
* Grants permission to update a service pipeline
*
* Access Level: Write
*
* Possible conditions:
* - .ifServiceTemplate()
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateServicePipeline.html
*/
toUpdateServicePipeline() {
return this.to('UpdateServicePipeline');
}
/**
* Grants permission to update a service sync blocker
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateServiceSyncBlocker.html
*/
toUpdateServiceSyncBlocker() {
return this.to('UpdateServiceSyncBlocker');
}
/**
* Grants permission to update a service sync config
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateServiceSyncConfig.html
*/
toUpdateServiceSyncConfig() {
return this.to('UpdateServiceSyncConfig');
}
/**
* Grants permission to update a service template
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateServiceTemplate.html
*/
toUpdateServiceTemplate() {
return this.to('UpdateServiceTemplate');
}
/**
* Grants permission to update a service template major version. DEPRECATED - use UpdateServiceTemplateVersion instead
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateServiceTemplateMajorVersion.html
*/
toUpdateServiceTemplateMajorVersion() {
return this.to('UpdateServiceTemplateMajorVersion');
}
/**
* Grants permission to create a service template minor version. DEPRECATED - use UpdateServiceTemplateVersion instead
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateServiceTemplateMinorVersion.html
*/
toUpdateServiceTemplateMinorVersion() {
return this.to('UpdateServiceTemplateMinorVersion');
}
/**
* Grants permission to update a service template version
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateServiceTemplateVersion.html
*/
toUpdateServiceTemplateVersion() {
return this.to('UpdateServiceTemplateVersion');
}
/**
* Grants permission to update a TemplateSyncConfig
*
* Access Level: Write
*
* https://docs.aws.amazon.com/proton/latest/APIReference/API_UpdateTemplateSyncConfig.html
*/
toUpdateTemplateSyncConfig() {
return this.to('UpdateTemplateSyncConfig');
}
/**
* Adds a resource of type environment-template to the statement
*
* https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-templates.html
*
* @param name - Identifier for the name.
* @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()
*/
onEnvironmentTemplate(name, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:proton:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:environment-template/${name}`);
}
/**
* Adds a resource of type environment-template-version to the statement
*
* https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-templates.html
*
* @param templateName - Identifier for the templateName.
* @param majorVersion - Identifier for the majorVersion.
* @param minorVersion - Identifier for the minorVersion.
* @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()
*/
onEnvironmentTemplateVersion(templateName, majorVersion, minorVersion, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:proton:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:environment-template/${templateName}:${majorVersion}.${minorVersion}`);
}
/**
* Adds a resource of type environment-template-major-version to the statement
*
* https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-templates.html
*
* @param templateName - Identifier for the templateName.
* @param majorVersionId - Identifier for the majorVersionId.
* @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()
*/
onEnvironmentTemplateMajorVersion(templateName, majorVersionId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:proton:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:environment-template/${templateName}:${majorVersionId}`);
}
/**
* Adds a resource of type environment-template-minor-version to the statement
*
* https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-templates.html
*
* @param templateName - Identifier for the templateName.
* @param majorVersionId - Identifier for the majorVersionId.
* @param minorVersionId - Identifier for the minorVersionId.
* @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()
*/
onEnvironmentTemplateMinorVersion(templateName, majorVersionId, minorVersionId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:proton:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:environment-template/${templateName}:${majorVersionId}.${minorVersionId}`);
}
/**
* Adds a resource of type service-template to the statement
*
* https://docs.aws.amazon.com/proton/latest/adminguide/managing-svc-templates.html
*
* @param name - Identifier for the name.
* @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()
*/
onServiceTemplate(name, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:proton:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:service-template/${name}`);
}
/**
* Adds a resource of type service-template-version to the statement
*
* https://docs.aws.amazon.com/proton/latest/adminguide/managing-svc-templates.html
*
* @param templateName - Identifier for the templateName.
* @param majorVersion - Identifier for the majorVersion.
* @param minorVersion - Identifier for the minorVersion.
* @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