iam-floyd
Version:
AWS IAM policy statement generator with fluent interface
302 lines (301 loc) • 12 kB
TypeScript
import { AccessLevelList } from '../../shared/access-level';
import { PolicyStatement, Operator } from '../../shared';
/**
* Statement provider for service [kafkaconnect](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonmanagedstreamingforkafkaconnect.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class Kafkaconnect extends PolicyStatement {
servicePrefix: string;
/**
* Statement provider for service [kafkaconnect](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonmanagedstreamingforkafkaconnect.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 an MSK Connect connector
*
* Access Level: Write
*
* Dependent actions:
* - ec2:CreateNetworkInterface
* - ec2:DescribeSecurityGroups
* - ec2:DescribeSubnets
* - ec2:DescribeVpcs
* - firehose:TagDeliveryStream
* - iam:AttachRolePolicy
* - iam:CreateServiceLinkedRole
* - iam:PassRole
* - iam:PutRolePolicy
* - logs:CreateLogDelivery
* - logs:DescribeLogGroups
* - logs:DescribeResourcePolicies
* - logs:GetLogDelivery
* - logs:ListLogDeliveries
* - logs:PutResourcePolicy
* - s3:GetBucketPolicy
* - s3:PutBucketPolicy
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_CreateConnector.html
*/
toCreateConnector(): this;
/**
* Grants permission to create an MSK Connect custom plugin
*
* Access Level: Write
*
* Dependent actions:
* - s3:GetObject
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_CreateCustomPlugin.html
*/
toCreateCustomPlugin(): this;
/**
* Grants permission to create an MSK Connect worker configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_CreateWorkerConfiguration.html
*/
toCreateWorkerConfiguration(): this;
/**
* Grants permission to delete an MSK Connect connector
*
* Access Level: Write
*
* Dependent actions:
* - logs:DeleteLogDelivery
* - logs:ListLogDeliveries
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_DeleteConnector.html
*/
toDeleteConnector(): this;
/**
* Grants permission to delete an MSK Connect custom plugin
*
* Access Level: Write
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_DeleteCustomPlugin.html
*/
toDeleteCustomPlugin(): this;
/**
* Grants permission to delete an MSK Connect worker configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_DeleteWorkerConfiguration.html
*/
toDeleteWorkerConfiguration(): this;
/**
* Grants permission to describe an MSK Connect connector
*
* Access Level: Read
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_DescribeConnector.html
*/
toDescribeConnector(): this;
/**
* Grants permission to describe a MSK Connect connector operation
*
* Access Level: Read
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_DescribeConnectorOperation.html
*/
toDescribeConnectorOperation(): this;
/**
* Grants permission to describe an MSK Connect custom plugin
*
* Access Level: Read
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_DescribeCustomPlugin.html
*/
toDescribeCustomPlugin(): this;
/**
* Grants permission to describe an MSK Connect worker configuration
*
* Access Level: Read
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_DescribeWorkerConfiguration.html
*/
toDescribeWorkerConfiguration(): this;
/**
* Grants permission to list all operations of a given MSK Connect connector
*
* Access Level: Read
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_ListConnectorOperations.html
*/
toListConnectorOperations(): this;
/**
* Grants permission to list all MSK Connect connectors in this account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_ListConnectors.html
*/
toListConnectors(): this;
/**
* Grants permission to list all MSK Connect custom plugins in this account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_ListCustomPlugins.html
*/
toListCustomPlugins(): this;
/**
* Grants permission to list tags of an MSK Connect resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_ListTagsForResource.html
*/
toListTagsForResource(): this;
/**
* Grants permission to list all MSK Connect worker configurations in this account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_ListWorkerConfigurations.html
*/
toListWorkerConfigurations(): this;
/**
* Grants permission to tag an MSK Connect resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_TagResource.html
*/
toTagResource(): this;
/**
* Grants permission to remove tags from an MSK Connect resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_UntagResource.html
*/
toUntagResource(): this;
/**
* Grants permission to update an MSK Connect connector
*
* Access Level: Write
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_UpdateConnector.html
*/
toUpdateConnector(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type connector to the statement
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_ConnectorSummary.html
*
* @param connectorName - Identifier for the connectorName.
* @param uUID - Identifier for the uUID.
* @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()
*/
onConnector(connectorName: string, uUID: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type custom plugin to the statement
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_CustomPlugin.html
*
* @param customPluginName - Identifier for the customPluginName.
* @param uUID - Identifier for the uUID.
* @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()
*/
onCustomPlugin(customPluginName: string, uUID: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type worker configuration to the statement
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_WorkerConfiguration.html
*
* @param workerConfigurationName - Identifier for the workerConfigurationName.
* @param uUID - Identifier for the uUID.
* @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()
*/
onWorkerConfiguration(workerConfigurationName: string, uUID: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type connector operation to the statement
*
* https://docs.aws.amazon.com/MSKC/latest/mskc/API_ConnectorOperation.html
*
* @param connectorName - Identifier for the connectorName.
* @param connectorUUID - Identifier for the connectorUUID.
* @param uUID - Identifier for the uUID.
* @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()
*/
onConnectorOperation(connectorName: string, connectorUUID: string, uUID: string, account?: string, region?: string, partition?: string): this;
/**
* Filters access by the presence of 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 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:
* - .toListTagsForResource()
* - .toTagResource()
*
* Applies to resource types:
* - connector
* - custom plugin
* - worker configuration
* - connector operation
*
* @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 the presence of 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;
}