UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

707 lines (706 loc) 27 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 [payment-cryptography](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awspaymentcryptography.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class PaymentCryptography extends PolicyStatement { servicePrefix: string; /** * Grants permission to add replication regions to an existing AWS Payment Cryptography key * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_AddKeyReplicationRegions.html */ toAddKeyReplicationRegions(): this; /** * Grants permission to associate an MPA approval team with a payment cryptography action * * Access Level: Write * * Dependent actions: * - mpa:CancelSession * - mpa:GetApprovalTeam * - mpa:StartSession * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_AssociateMpaTeam.html */ toAssociateMpaTeam(): this; /** * Grants permission to create a user-friendly name for a Key * * Access Level: Write * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html */ toCreateAlias(): this; /** * Grants permission to create a unique customer managed key in the caller's AWS account and region * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifKeyClass() * - .ifKeyUsage() * - .ifKeyAlgorithm() * * Dependent actions: * - payment-cryptography:TagResource * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html */ toCreateKey(): this; /** * Grants permission to decrypt ciphertext data to plaintext using symmetric, asymmetric or DUKPT data encryption key * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_DecryptData.html */ toDecryptData(): this; /** * Grants permission to delete the specified alias * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html */ toDeleteAlias(): this; /** * Grants permission to schedule the deletion of a Key * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * Dependent actions: * - mpa:CancelSession * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteKey.html */ toDeleteKey(): this; /** * Grants permission to delete the resource-based policy attached to a key * * Access Level: Permissions management * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteResourcePolicy.html */ toDeleteResourcePolicy(): this; /** * Grants permission to disable default key replication regions for account-level replication * * Access Level: Write * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DisableDefaultKeyReplicationRegions.html */ toDisableDefaultKeyReplicationRegions(): this; /** * Grants permission to disassociate an MPA approval team from a payment cryptography action * * Access Level: Write * * Dependent actions: * - mpa:CancelSession * - mpa:StartSession * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DisassociateMpaTeam.html */ toDisassociateMpaTeam(): this; /** * Grants permission to enable default key replication regions for account-level replication * * Access Level: Write * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_EnableDefaultKeyReplicationRegions.html */ toEnableDefaultKeyReplicationRegions(): this; /** * Grants permission to encrypt plaintext data to ciphertext using symmetric, asymmetric or DUKPT data encryption key * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_EncryptData.html */ toEncryptData(): this; /** * Grants permission to export a key from the service * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * - .ifCertificateAuthorityPublicKeyIdentifier() * - .ifWrappingKeyIdentifier() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ExportKey.html */ toExportKey(): this; /** * Grants permission to generate a KekValidationRequest or a KekValidationResponse for node-to-node initialization between payment processing nodes using Australian Standard 2805 (AS2805) * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_GenerateAs2805KekValidation.html */ toGenerateAs2805KekValidation(): this; /** * Grants permission to generate card-related data using algorithms such as Card Verification Values (CVV/CVV2), Dynamic Card Verification Values (dCVV/dCVV2) or Card Security Codes (CSC) that check the validity of a magnetic stripe card * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_GenerateCardValidationData.html */ toGenerateCardValidationData(): this; /** * Grants permission to generate a MAC (Message Authentication Code) cryptogram * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_GenerateMac.html */ toGenerateMac(): this; /** * Grants permission to generate a MAC (Message Authentication Code) cryptogram * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_GenerateMacEmvPinChange.html */ toGenerateMacEmvPinChange(): this; /** * Grants permission to generate pin-related data such as PIN, PIN Verification Value (PVV), PIN Block and PIN Offset during new card issuance or card re-issuance * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_GeneratePinData.html */ toGeneratePinData(): this; /** * Grants permission to return the keyArn associated with an aliasName * * Access Level: Read * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetAlias.html */ toGetAlias(): this; /** * Grants permission to return the Certificate Signing Request for a public key from a key of class PUBLIC_KEY * * Access Level: Read * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetCertificateSigningRequest.html */ toGetCertificateSigningRequest(): this; /** * Grants permission to retrieve the default key replication regions configured at the account level * * Access Level: Read * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetDefaultKeyReplicationRegions.html */ toGetDefaultKeyReplicationRegions(): this; /** * Grants permission to return the detailed information about the specified key * * Access Level: Read * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetKey.html */ toGetKey(): this; /** * Grants permission to retrieve information about an MPA approval team association for a payment cryptography action * * Access Level: Read * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetMpaTeamAssociation.html */ toGetMpaTeamAssociation(): this; /** * Grants permission to get the export token and the signing key certificate to initiate a TR-34 key export * * Access Level: Read * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForExport.html */ toGetParametersForExport(): this; /** * Grants permission to get the import token and the wrapping key certificate to initiate a TR-34 key import * * Access Level: Read * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForImport.html */ toGetParametersForImport(): this; /** * Grants permission to return the public key from a key of class PUBLIC_KEY * * Access Level: Read * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetPublicKeyCertificate.html */ toGetPublicKeyCertificate(): this; /** * Grants permission to retrieve the resource-based policy attached to a key * * Access Level: Read * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetResourcePolicy.html */ toGetResourcePolicy(): this; /** * Grants permission to imports keys and public key certificates * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifImportKeyMaterial() * - .ifCertificateAuthorityPublicKeyIdentifier() * - .ifWrappingKeyIdentifier() * * Dependent actions: * - mpa:StartSession * - payment-cryptography:TagResource * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html */ toImportKey(): this; /** * Grants permission to return a list of aliases created for all keys in the caller's AWS account and Region * * Access Level: List * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListAliases.html */ toListAliases(): this; /** * Grants permission to return a list of keys created in the caller's AWS account and Region * * Access Level: List * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListKeys.html */ toListKeys(): this; /** * Grants permission to return a list of tags created in the caller's AWS account and Region * * Access Level: Read * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListTagsForResource.html */ toListTagsForResource(): this; /** * Grants permission to attach or replace a resource-based policy on a key * * Access Level: Permissions management * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_PutResourcePolicy.html */ toPutResourcePolicy(): this; /** * Grants permission to re-encrypt ciphertext using DUKPT, Symmetric and Asymmetric Data Encryption Keys * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_ReEncryptData.html */ toReEncryptData(): this; /** * Grants permission to remove replication regions from an existing AWS Payment Cryptography key * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_RemoveKeyReplicationRegions.html */ toRemoveKeyReplicationRegions(): this; /** * Grants permission to cancel a scheduled key deletion if at any point during the waiting period a Key needs to be revived * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_RestoreKey.html */ toRestoreKey(): this; /** * Grants permission to enable a disabled Key * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StartKeyUsage.html */ toStartKeyUsage(): this; /** * Grants permission to disable an enabled Key * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StopKeyUsage.html */ toStopKeyUsage(): this; /** * Grants permission to add or overwrites one or more tags for the specified resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsRequestTag() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_TagResource.html */ toTagResource(): this; /** * Grants permission to translate wrapping key type for a wrapped key * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_TranslateKeyMaterial.html */ toTranslateKeyMaterial(): this; /** * Grants permission to translate encrypted PIN block from and to ISO 9564 formats 0,1,3,4 * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_TranslatePinData.html */ toTranslatePinData(): this; /** * Grants permission to remove the specified tag or tags from the specified resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UntagResource.html */ toUntagResource(): this; /** * Grants permission to change the key to which an alias is assigned, or unassign it from its current key * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html */ toUpdateAlias(): this; /** * Grants permission to verify Authorization Request Cryptogram (ARQC) for a EMV chip payment card authorization * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_VerifyAuthRequestCryptogram.html */ toVerifyAuthRequestCryptogram(): this; /** * Grants permission to verify card-related validation data using algorithms such as Card Verification Values (CVV/CVV2), Dynamic Card Verification Values (dCVV/dCVV2) and Card Security Codes (CSC) * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_VerifyCardValidationData.html */ toVerifyCardValidationData(): this; /** * Grants permission to verify MAC (Message Authentication Code) of input data against a provided MAC * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_VerifyMac.html */ toVerifyMac(): this; /** * Grants permission to verify pin-related data such as PIN and PIN Offset using algorithms including VISA PVV and IBM3624 * * Access Level: Write * * Possible conditions: * - .ifRequestAlias() * * https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_VerifyPinData.html */ toVerifyPinData(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type key to the statement * * @param keyId - Identifier for the keyId. * @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() * - .ifResourceAliases() */ onKey(keyId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type alias to the statement * * @param alias - Identifier for the alias. * @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: * - .ifResourceAliases() */ onAlias(alias: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type approval-team to the statement * * https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html * * @param approvalTeamId - Identifier for the approvalTeamId. * @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() */ onApprovalTeam(approvalTeamId: string, account?: string, region?: string, partition?: string): this; /** * Filters access by both the key and value of the tag in the request for the specified operation * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag * * Applies to actions: * - .toCreateKey() * - .toDeleteAlias() * - .toGetAlias() * - .toImportKey() * - .toTagResource() * - .toUpdateAlias() * * @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 assigned to a key for the specified operation * * https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/security_iam_service-with-iam.html#security_iam_service-with-iam-tags * * Applies to resource types: * - key * - approval-team * * @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 tag keys in the request for the specified operation * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys * * Applies to actions: * - .toCreateKey() * - .toDeleteAlias() * - .toGetAlias() * - .toImportKey() * - .toTagResource() * - .toUntagResource() * - .toUpdateAlias() * * @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; /** * Filters access by the CertificateAuthorityPublicKeyIdentifier specified in the request or the ImportKey, and ExportKey operations * * Applies to actions: * - .toExportKey() * - .toImportKey() * * @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` */ ifCertificateAuthorityPublicKeyIdentifier(value: string | string[], operator?: Operator | string): this; /** * Filters access by the type of key material being imported [RootCertificatePublicKey, TrustedCertificatePublicKey, Tr34KeyBlock, Tr31KeyBlock, DiffieHellmanTr31KeyBlock, As2805KeyCryptogram, KeyCryptogram] for the ImportKey operation * * Applies to actions: * - .toImportKey() * * @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` */ ifImportKeyMaterial(value: string | string[], operator?: Operator | string): this; /** * Filters access by KeyAlgorithm specified in the request for the CreateKey operation * * Applies to actions: * - .toCreateKey() * * @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` */ ifKeyAlgorithm(value: string | string[], operator?: Operator | string): this; /** * Filters access by KeyClass specified in the request for the CreateKey operation * * Applies to actions: * - .toCreateKey() * * @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` */ ifKeyClass(value: string | string[], operator?: Operator | string): this; /** * Filters access by KeyClass specified in the request or associated with a key for the CreateKey operation * * Applies to actions: * - .toCreateKey() * * @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` */ ifKeyUsage(value: string | string[], operator?: Operator | string): this; /** * Filters access by aliases in the request for the specified operation * * Applies to actions: * - .toAddKeyReplicationRegions() * - .toDecryptData() * - .toDeleteKey() * - .toEncryptData() * - .toExportKey() * - .toGenerateAs2805KekValidation() * - .toGenerateCardValidationData() * - .toGenerateMac() * - .toGenerateMacEmvPinChange() * - .toGeneratePinData() * - .toGetCertificateSigningRequest() * - .toGetKey() * - .toGetPublicKeyCertificate() * - .toReEncryptData() * - .toRemoveKeyReplicationRegions() * - .toRestoreKey() * - .toStartKeyUsage() * - .toStopKeyUsage() * - .toTranslateKeyMaterial() * - .toTranslatePinData() * - .toVerifyAuthRequestCryptogram() * - .toVerifyCardValidationData() * - .toVerifyMac() * - .toVerifyPinData() * * @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` */ ifRequestAlias(value: string | string[], operator?: Operator | string): this; /** * Filters access by aliases associated with a key for the specified operation * * Applies to resource types: * - key * - alias * * @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` */ ifResourceAliases(value: string | string[], operator?: Operator | string): this; /** * Filters access by the WrappingKeyIdentifier specified in the request for the ImportKey, and ExportKey operations * * Applies to actions: * - .toExportKey() * - .toImportKey() * * @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` */ ifWrappingKeyIdentifier(value: string | string[], operator?: Operator | string): this; /** * Statement provider for service [payment-cryptography](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awspaymentcryptography.html). * */ constructor(props?: iam.PolicyStatementProps); }