UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

209 lines (208 loc) 7.8 kB
import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement } from '../../shared'; import { aws_iam as iam } from "aws-cdk-lib"; /** * Statement provider for service [mgh](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsmigrationhub.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class Mgh extends PolicyStatement { servicePrefix: string; /** * Grants permission to associate a given AWS artifact to a MigrationTask * * Access Level: Write * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_AssociateCreatedArtifact.html */ toAssociateCreatedArtifact(): this; /** * Grants permission to associate a given ADS resource to a MigrationTask * * Access Level: Write * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_AssociateDiscoveredResource.html */ toAssociateDiscoveredResource(): this; /** * Grants permission to create a Migration Hub Home Region Control * * Access Level: Write * * https://docs.aws.amazon.com/migrationhub-home-region/latest/APIReference/API_CreateHomeRegionControl.html */ toCreateHomeRegionControl(): this; /** * Grants permission to create a ProgressUpdateStream * * Access Level: Write * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_CreateProgressUpdateStream.html */ toCreateProgressUpdateStream(): this; /** * Grants permission to delete a Migration Hub Home Region Control * * Access Level: Write * * https://docs.aws.amazon.com/migrationhub-home-region/latest/APIReference/API_DeleteHomeRegionControl.html */ toDeleteHomeRegionControl(): this; /** * Grants permission to delete a ProgressUpdateStream * * Access Level: Write * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_DeleteProgressUpdateStream.html */ toDeleteProgressUpdateStream(): this; /** * Grants permission to get an Application Discovery Service Application's state * * Access Level: Read * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_DescribeApplicationState.html */ toDescribeApplicationState(): this; /** * Grants permission to list Home Region Controls * * Access Level: List * * https://docs.aws.amazon.com/migrationhub-home-region/latest/APIReference/API_DescribeHomeRegionControls.html */ toDescribeHomeRegionControls(): this; /** * Grants permission to describe a MigrationTask * * Access Level: Read * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_DescribeMigrationTask.html */ toDescribeMigrationTask(): this; /** * Grants permission to disassociate a given AWS artifact from a MigrationTask * * Access Level: Write * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_DisassociateCreatedArtifact.html */ toDisassociateCreatedArtifact(): this; /** * Grants permission to disassociate a given ADS resource from a MigrationTask * * Access Level: Write * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_DisassociateDiscoveredResource.html */ toDisassociateDiscoveredResource(): this; /** * Grants permission to get the Migration Hub Home Region * * Access Level: Read * * https://docs.aws.amazon.com/migrationhub-home-region/latest/APIReference/API_GetHomeRegion.html */ toGetHomeRegion(): this; /** * Grants permission to import a MigrationTask * * Access Level: Write * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_ImportMigrationTask.html */ toImportMigrationTask(): this; /** * Grants permission to list Application statuses * * Access Level: List * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_ListApplicationStates.html */ toListApplicationStates(): this; /** * Grants permission to list associated created artifacts for a MigrationTask * * Access Level: List * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_ListCreatedArtifacts.html */ toListCreatedArtifacts(): this; /** * Grants permission to list associated ADS resources from MigrationTask * * Access Level: List * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_ListDiscoveredResources.html */ toListDiscoveredResources(): this; /** * Grants permission to list MigrationTasks * * Access Level: List * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_ListMigrationTasks.html */ toListMigrationTasks(): this; /** * Grants permission to to list ProgressUpdateStreams * * Access Level: List * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_ListProgressUpdateStreams.html */ toListProgressUpdateStreams(): this; /** * Grants permission to update an Application Discovery Service Application's state * * Access Level: Write * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_NotifyApplicationState.html */ toNotifyApplicationState(): this; /** * Grants permission to notify latest MigrationTask state * * Access Level: Write * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_NotifyMigrationTaskState.html */ toNotifyMigrationTaskState(): this; /** * Grants permission to put ResourceAttributes * * Access Level: Write * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_PutResourceAttributes.html */ toPutResourceAttributes(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type progressUpdateStream to the statement * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_ProgressUpdateStreamSummary.html * * @param stream - Identifier for the stream. * @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. */ onProgressUpdateStream(stream: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type migrationTask to the statement * * https://docs.aws.amazon.com/migrationhub/latest/ug/API_MigrationTask.html * * @param stream - Identifier for the stream. * @param task - Identifier for the task. * @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. */ onMigrationTask(stream: string, task: string, account?: string, region?: string, partition?: string): this; /** * Statement provider for service [mgh](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsmigrationhub.html). * */ constructor(props?: iam.PolicyStatementProps); }