UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

212 lines (211 loc) 8.87 kB
import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement, Operator } from '../../shared'; import { aws_iam as iam } from "aws-cdk-lib"; /** * Statement provider for service [scn](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class Scn extends PolicyStatement { servicePrefix: string; /** * Grants permission to add AWS Supply Chain administrator permission to federated user * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toAssignAdminPermissionsToUser(): this; /** * Grants permission to create a BillOfMaterialsImportJob which will import a CSV file of BillOfMaterials records * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toCreateBillOfMaterialsImportJob(): this; /** * Grants permission to create a new AWS Supply Chain instance * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toCreateInstance(): this; /** * Grants permission to create IAM Identity Center application for a AWS Supply Chain instance * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toCreateSSOApplication(): this; /** * Grants permission to delete an AWS Supply Chain instance * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toDeleteInstance(): this; /** * Grants permission to delete IAM Identity Center application of the AWS Supply Chain instance * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toDeleteSSOApplication(): this; /** * Grants permission to view details of an AWS Supply Chain instance * * Access Level: Read * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toDescribeInstance(): this; /** * Grants permission to view status and details of a BillOfMaterialsImportJob * * Access Level: Read * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toGetBillOfMaterialsImportJob(): this; /** * Grants permission to list AWS Supply Chain administrators of an instance * * Access Level: List * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toListAdminUsers(): this; /** * Grants permission to view the AWS Supply Chain instances associated with an AWS account * * Access Level: List * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toListInstances(): this; /** * Grants permission to list tags for an AWS Supply Chain instance * * Access Level: List * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toListTagsForResource(): this; /** * Grants permission to remove AWS Supply Chain administrator permission from federated user * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toRemoveAdminPermissionsForUser(): this; /** * Grants permission to create a DataIntegrationEvent which will ingest data in real-time * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toSendDataIntegrationEvent(): this; /** * Grants permission to tag an AWS Supply Chain instance * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toTagResource(): this; /** * Grants permission to remove tag from an AWS Supply Chain instance * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toUntagResource(): this; /** * Grants permission to update an AWS Supply Chain instance * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html */ toUpdateInstance(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type instance to the statement * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html * * @param instanceId - Identifier for the instanceId. * @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. */ onInstance(instanceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type bill-of-materials-import-job to the statement * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html * * @param instanceId - Identifier for the instanceId. * @param jobId - Identifier for the jobId. * @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. */ onBillOfMaterialsImportJob(instanceId: string, jobId: string, account?: string, region?: string, partition?: string): this; /** * Filters access by using 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: * - .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: string, value: string | string[], operator?: Operator | string): this; /** * Filters access by using tag key-value pairs attached to the resource * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag * * @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: string, value: string | string[], operator?: Operator | string): this; /** * Filters access by using tag keys in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys * * Applies to actions: * - .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: string | string[], operator?: Operator | string): this; /** * Statement provider for service [scn](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssupplychain.html). * */ constructor(props?: iam.PolicyStatementProps); }