iam-floyd
Version:
AWS IAM policy statement generator with fluent interface
468 lines (467 loc) • 18.8 kB
TypeScript
import { AccessLevelList } from '../../shared/access-level';
import { PolicyStatement, Operator } from '../../shared';
/**
* Statement provider for service [managedblockchain](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonmanagedblockchain.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class Managedblockchain extends PolicyStatement {
servicePrefix: string;
/**
* Statement provider for service [managedblockchain](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonmanagedblockchain.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 Amazon Managed Blockchain accessor
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_CreateAccessor.html
*/
toCreateAccessor(): this;
/**
* Grants permission to create a member of an Amazon Managed Blockchain network
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* Dependent actions:
* - iam:CreateServiceLinkedRole
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_CreateMember.html
*/
toCreateMember(): this;
/**
* Grants permission to create an Amazon Managed Blockchain network
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* Dependent actions:
* - iam:CreateServiceLinkedRole
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_CreateNetwork.html
*/
toCreateNetwork(): this;
/**
* Grants permission to create a node within a member of an Amazon Managed Blockchain network
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* Dependent actions:
* - iam:CreateServiceLinkedRole
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_CreateNode.html
*/
toCreateNode(): this;
/**
* Grants permission to create a proposal that other blockchain network members can vote on to add or remove a member in an Amazon Managed Blockchain network
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_CreateProposal.html
*/
toCreateProposal(): this;
/**
* Grants permission to delete an Amazon Managed Blockchain accessor
*
* Access Level: Write
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_DeleteAccessor.html
*/
toDeleteAccessor(): this;
/**
* Grants permission to delete a member and all associated resources from an Amazon Managed Blockchain network
*
* Access Level: Write
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_DeleteMember.html
*/
toDeleteMember(): this;
/**
* Grants permission to delete a node from a member of an Amazon Managed Blockchain network
*
* Access Level: Write
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_DeleteNode.html
*/
toDeleteNode(): this;
/**
* Grants permission to send HTTP GET requests to an Ethereum node
*
* Access Level: Permissions management
*
* https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/security_iam_id-based-policy-examples.html
*/
toGET(): this;
/**
* Grants permission to return detailed information about an Amazon Managed Blockchain accessor
*
* Access Level: Read
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_GetAccessor.html
*/
toGetAccessor(): this;
/**
* Grants permission to return detailed information about a member of an Amazon Managed Blockchain network
*
* Access Level: Read
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_GetMember.html
*/
toGetMember(): this;
/**
* Grants permission to return detailed information about an Amazon Managed Blockchain network
*
* Access Level: Read
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_GetNetwork.html
*/
toGetNetwork(): this;
/**
* Grants permission to return detailed information about a node within a member of an Amazon Managed Blockchain network
*
* Access Level: Read
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_GetNode.html
*/
toGetNode(): this;
/**
* Grants permission to return detailed information about a proposal of an Amazon Managed Blockchain network
*
* Access Level: Read
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_GetProposal.html
*/
toGetProposal(): this;
/**
* Grants permission to create WebSocket connections to an Ethereum node
*
* Access Level: Permissions management
*
* https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/security_iam_id-based-policy-examples.html
*/
toInvoke(): this;
/**
* Grants permission to invoke the Bitcoin Mainnet RPCs
*
* Access Level: Read
*
* https://docs.aws.amazon.com/managed-blockchain/latest/ambbtc-dg/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-access-bitcoin-networks
*/
toInvokeRpcBitcoinMainnet(): this;
/**
* Grants permission to invoke the Bitcoin Testnet RPCs
*
* Access Level: Read
*
* https://docs.aws.amazon.com/managed-blockchain/latest/ambbtc-dg/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-access-bitcoin-networks
*/
toInvokeRpcBitcoinTestnet(): this;
/**
* Grants permission to invoke the Polygon Mainnet RPCs
*
* Access Level: Read
*
* https://docs.aws.amazon.com/managed-blockchain/latest/ambp-dg/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-access-polygon-networks
*/
toInvokeRpcPolygonMainnet(): this;
/**
* Grants permission to invoke the Polygon Mumbai Testnet RPCs
*
* Access Level: Read
*
* https://docs.aws.amazon.com/managed-blockchain/latest/ambp-dg/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-access-polygon-networks
*/
toInvokeRpcPolygonMumbaiTestnet(): this;
/**
* Grants permission to list the Amazon Managed Blockchain accessors owned by the current AWS account
*
* Access Level: List
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_ListAccessors.html
*/
toListAccessors(): this;
/**
* Grants permission to list the invitations extended to the active AWS account from any Managed Blockchain network
*
* Access Level: List
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_ListInvitations.html
*/
toListInvitations(): this;
/**
* Grants permission to list the members of an Amazon Managed Blockchain network and the properties of their memberships
*
* Access Level: List
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_ListMembers.html
*/
toListMembers(): this;
/**
* Grants permission to list the Amazon Managed Blockchain networks in which the current AWS account participates
*
* Access Level: List
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_ListNetworks.html
*/
toListNetworks(): this;
/**
* Grants permission to list the nodes within a member of an Amazon Managed Blockchain network
*
* Access Level: List
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_ListNodes.html
*/
toListNodes(): this;
/**
* Grants permission to list all votes for a proposal, including the value of the vote and the unique identifier of the member that cast the vote for the given Amazon Managed Blockchain network
*
* Access Level: Read
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_ListProposalVotes.html
*/
toListProposalVotes(): this;
/**
* Grants permission to list proposals for the given Amazon Managed Blockchain network
*
* Access Level: List
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_ListProposals.html
*/
toListProposals(): this;
/**
* Grants permission to view tags associated with an Amazon Managed Blockchain resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_ListTagsForResource.html
*/
toListTagsForResource(): this;
/**
* Grants permission to send HTTP POST requests to an Ethereum node
*
* Access Level: Permissions management
*
* https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/security_iam_id-based-policy-examples.html
*/
toPOST(): this;
/**
* Grants permission to reject the invitation to join the blockchain network
*
* Access Level: Write
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_RejectInvitation.html
*/
toRejectInvitation(): this;
/**
* Grants permission to add tags to an Amazon Managed Blockchain resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_TagResource.html
*/
toTagResource(): this;
/**
* Grants permission to remove tags from an Amazon Managed Blockchain resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_UntagResource.html
*/
toUntagResource(): this;
/**
* Grants permission to update a member of an Amazon Managed Blockchain network
*
* Access Level: Write
*
* Dependent actions:
* - iam:CreateServiceLinkedRole
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_UpdateMember.html
*/
toUpdateMember(): this;
/**
* Grants permission to update a node from a member of an Amazon Managed Blockchain network
*
* Access Level: Write
*
* Dependent actions:
* - iam:CreateServiceLinkedRole
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_UpdateNode.html
*/
toUpdateNode(): this;
/**
* Grants permission to cast a vote for a proposal on behalf of the blockchain network member specified
*
* Access Level: Write
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_VoteOnProposal.html
*/
toVoteOnProposal(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type network to the statement
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_Network.html
*
* @param networkId - Identifier for the networkId.
* @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()
*/
onNetwork(networkId: string, region?: string, partition?: string): this;
/**
* Adds a resource of type member to the statement
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_Member.html
*
* @param memberId - Identifier for the memberId.
* @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()
*/
onMember(memberId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type node to the statement
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_Node.html
*
* @param nodeId - Identifier for the nodeId.
* @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()
*/
onNode(nodeId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type proposal to the statement
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_Proposal.html
*
* @param proposalId - Identifier for the proposalId.
* @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()
*/
onProposal(proposalId: string, region?: string, partition?: string): this;
/**
* Adds a resource of type invitation to the statement
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_Invitation.html
*
* @param invitationId - Identifier for the invitationId.
* @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()
*/
onInvitation(invitationId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type accessor to the statement
*
* https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_Accessor.html
*
* @param accessorId - Identifier for the accessorId.
* @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()
*/
onAccessor(accessorId: string, account?: string, region?: string, partition?: string): this;
/**
* Filters actions based on the 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:
* - .toCreateAccessor()
* - .toCreateMember()
* - .toCreateNetwork()
* - .toCreateNode()
* - .toCreateProposal()
* - .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 actions based on the tags associated with an Amazon Managed Blockchain resource
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag
*
* Applies to resource types:
* - network
* - member
* - node
* - proposal
* - invitation
* - accessor
*
* @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 actions based on the 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:
* - .toCreateAccessor()
* - .toCreateMember()
* - .toCreateNetwork()
* - .toCreateNode()
* - .toCreateProposal()
* - .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;
}