UNPKG

iam-floyd

Version:

AWS IAM policy statement generator with fluent interface

521 lines (520 loc) 19.7 kB
import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement, Operator } from '../../shared'; /** * Statement provider for service [app-integrations](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonappintegrations.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class AppIntegrations extends PolicyStatement { servicePrefix: string; /** * Statement provider for service [app-integrations](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonappintegrations.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ constructor(sid?: string); /** * Grants permission to create a new Application * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - iam:AttachRolePolicy * - iam:CreateServiceLinkedRole * - iam:PutRolePolicy * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateApplication.html */ toCreateApplication(): this; /** * Grants permission to create an ApplicationAssociation * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/connect/latest/adminguide/onboard-3p-apps.html */ toCreateApplicationAssociation(): this; /** * Grants permission to create a new DataIntegration * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - appflow:DeleteFlow * - appflow:DescribeConnectorProfiles * - iam:AttachRolePolicy * - iam:CreateServiceLinkedRole * - iam:PutRolePolicy * - kms:CreateGrant * - profile:GetDomain * - profile:GetProfileObjectType * - s3:GetBucketNotification * - s3:GetEncryptionConfiguration * - s3:PutBucketNotification * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html */ toCreateDataIntegration(): this; /** * Grants permission to create a DataIntegrationAssociation * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - appflow:CreateFlow * - appflow:DeleteFlow * - appflow:DescribeConnectorEntity * - appflow:DescribeConnectorProfiles * - appflow:TagResource * - appflow:UseConnectorProfile * - profile:CreateSnapshot * - profile:GetSnapshot * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html */ toCreateDataIntegrationAssociation(): this; /** * Grants permission to create a new EventIntegration * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - iam:AttachRolePolicy * - iam:CreateServiceLinkedRole * - iam:PutRolePolicy * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateEventIntegration.html */ toCreateEventIntegration(): this; /** * Grants permission to create an EventIntegrationAssociation * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * Dependent actions: * - events:PutRule * - events:PutTargets * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateEventIntegration.html */ toCreateEventIntegrationAssociation(): this; /** * Grants permission to delete an Application * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DeleteApplication.html */ toDeleteApplication(): this; /** * Grants permission to delete an ApplicationAssociation * * Access Level: Write * * https://docs.aws.amazon.com/connect/latest/adminguide/onboard-3p-apps.html */ toDeleteApplicationAssociation(): this; /** * Grants permission to delete a DataIntegration * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DeleteDataIntegration.html */ toDeleteDataIntegration(): this; /** * Grants permission to delete a DataIntegrationAssociation * * Access Level: Write * * Dependent actions: * - appflow:CreateFlow * - appflow:DeleteFlow * - appflow:DescribeConnectorEntity * - appflow:DescribeConnectorProfiles * - appflow:StopFlow * - appflow:TagResource * - appflow:UseConnectorProfile * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DeleteDataIntegration.html */ toDeleteDataIntegrationAssociation(): this; /** * Grants permission to delete an EventIntegration * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DeleteEventIntegration.html */ toDeleteEventIntegration(): this; /** * Grants permission to delete an EventIntegrationAssociation * * Access Level: Write * * Dependent actions: * - events:DeleteRule * - events:ListTargetsByRule * - events:RemoveTargets * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DeleteEventIntegration.html */ toDeleteEventIntegrationAssociation(): this; /** * Grants permission to view details about Application * * Access Level: Read * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_GetApplication.html */ toGetApplication(): this; /** * Grants permission to view details about DataIntegrations * * Access Level: Read * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_GetDataIntegration.html */ toGetDataIntegration(): this; /** * Grants permission to view details about EventIntegrations * * Access Level: Read * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_GetEventIntegration.html */ toGetEventIntegration(): this; /** * Grants permission to list ApplicationAssociations * * Access Level: List * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_ListApplicationAssociations.html */ toListApplicationAssociations(): this; /** * Grants permission to list Applications * * Access Level: List * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_ListApplications.html */ toListApplications(): this; /** * Grants permission to list DataIntegrationAssociations * * Access Level: List * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_ListDataIntegrationAssociations.html */ toListDataIntegrationAssociations(): this; /** * Grants permission to list DataIntegrations * * Access Level: List * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_ListDataIntegrations.html */ toListDataIntegrations(): this; /** * Grants permission to list EventIntegrationAssociations * * Access Level: Read * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_ListEventIntegrationAssociations.html */ toListEventIntegrationAssociations(): this; /** * Grants permission to list EventIntegrations * * Access Level: List * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_ListEventIntegrations.html */ toListEventIntegrations(): this; /** * Grants permission to lists tag for an Amazon AppIntegration resource * * Access Level: Read * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_ListTagsForResource.html */ toListTagsForResource(): this; /** * Grants permission to tag an Amazon AppIntegration resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsRequestTag() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_TagResource.html */ toTagResource(): this; /** * Grants permission to untag an Amazon AppIntegration resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_UntagResource.html */ toUntagResource(): this; /** * Grants permission to modify an Application * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_UpdateApplication.html */ toUpdateApplication(): this; /** * Grants permission to modify a DataIntegration * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_UpdateDataIntegration.html */ toUpdateDataIntegration(): this; /** * Grants permission to modify a DataIntegrationAssociation * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * Dependent actions: * - profile:CreateSnapshot * - profile:GetSnapshot * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_UpdateDataIntegrationAssociation.html */ toUpdateDataIntegrationAssociation(): this; /** * Grants permission to modify an EventIntegration * * Access Level: Write * * Possible conditions: * - .ifAwsResourceTag() * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_UpdateEventIntegration.html */ toUpdateEventIntegration(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type event-integration to the statement * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_EventIntegration.html * * @param eventIntegrationName - Identifier for the eventIntegrationName. * @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() */ onEventIntegration(eventIntegrationName: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type event-integration-association to the statement * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_EventIntegrationAssociation.html * * @param eventIntegrationName - Identifier for the eventIntegrationName. * @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() */ onEventIntegrationAssociation(eventIntegrationName: string, resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type data-integration to the statement * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DataIntegrationSummary.html * * @param dataIntegrationId - Identifier for the dataIntegrationId. * @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() */ onDataIntegration(dataIntegrationId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type data-integration-association to the statement * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DataIntegrationAssociationSummary.html * * @param dataIntegrationId - Identifier for the dataIntegrationId. * @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() */ onDataIntegrationAssociation(dataIntegrationId: string, resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type application to the statement * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_ApplicationSummary.html * * @param applicationId - Identifier for the applicationId. * @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() */ onApplication(applicationId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type application-association to the statement * * https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_ApplicationAssociationSummary.html * * @param applicationId - Identifier for the applicationId. * @param applicationAssociationId - Identifier for the applicationAssociationId. * @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() */ onApplicationAssociation(applicationId: string, applicationAssociationId: string, account?: string, region?: string, partition?: string): this; /** * Filters access by tags that are passed in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag * * Applies to actions: * - .toCreateApplication() * - .toCreateApplicationAssociation() * - .toCreateDataIntegration() * - .toCreateDataIntegrationAssociation() * - .toCreateEventIntegration() * - .toCreateEventIntegrationAssociation() * - .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 tags associated with the resource * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag * * Applies to actions: * - .toDeleteApplication() * - .toDeleteDataIntegration() * - .toDeleteEventIntegration() * - .toGetApplication() * - .toGetDataIntegration() * - .toGetEventIntegration() * - .toListTagsForResource() * - .toTagResource() * - .toUntagResource() * - .toUpdateApplication() * - .toUpdateDataIntegration() * - .toUpdateDataIntegrationAssociation() * - .toUpdateEventIntegration() * * Applies to resource types: * - event-integration * - event-integration-association * - data-integration * - data-integration-association * - application * - application-association * * @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 tag keys that are passed in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys * * Applies to actions: * - .toCreateApplication() * - .toCreateApplicationAssociation() * - .toCreateDataIntegration() * - .toCreateDataIntegrationAssociation() * - .toCreateEventIntegration() * - .toCreateEventIntegrationAssociation() * - .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; }