MpaClient

interface MpaClient : SdkClient

Multi-party approval is a capability of Organizations that allows you to protect a predefined list of operations through a distributed approval process. Use Multi-party approval to establish approval workflows and transform security processes into team-based decisions.

When to use Multi-party approval:

  • You need to align with the Zero Trust principle of "never trust, always verify"

  • You need to make sure that the right humans have access to the right things in the right way

  • You need distributed decision-making for sensitive or critical operations

  • You need to protect against unintended operations on sensitive or critical resources

  • You need formal reviews and approvals for auditing or compliance reasons

For more information, see What is Multi-party approval in the Multi-party approval User Guide.

Properties

Link copied to clipboard
abstract override val config: MpaClient.Config

MpaClient's configuration

Functions

Link copied to clipboard

Cancels an approval session. For more information, see Session in the Multi-party approval User Guide.

Link copied to clipboard

Creates a new approval team. For more information, see Approval team in the Multi-party approval User Guide.

Link copied to clipboard

Creates a new identity source. For more information, see Identity Source in the Multi-party approval User Guide.

Link copied to clipboard

Deletes an identity source. For more information, see Identity Source in the Multi-party approval User Guide.

Link copied to clipboard

Deletes an inactive approval team. For more information, see Team health in the Multi-party approval User Guide.

Link copied to clipboard

Returns details for an approval team.

Link copied to clipboard

Returns details for an identity source. For more information, see Identity Source in the Multi-party approval User Guide.

Link copied to clipboard

Returns details for the version of a policy. Policies define the permissions for team resources.

Link copied to clipboard

Returns details about a policy for a resource.

Link copied to clipboard
abstract suspend fun getSession(input: GetSessionRequest): GetSessionResponse

Returns details for an approval session. For more information, see Session in the Multi-party approval User Guide.

Link copied to clipboard
abstract suspend fun listApprovalTeams(input: ListApprovalTeamsRequest = ListApprovalTeamsRequest { }): ListApprovalTeamsResponse

Returns a list of approval teams.

Link copied to clipboard
abstract suspend fun listIdentitySources(input: ListIdentitySourcesRequest = ListIdentitySourcesRequest { }): ListIdentitySourcesResponse

Returns a list of identity sources. For more information, see Identity Source in the Multi-party approval User Guide.

Link copied to clipboard
abstract suspend fun listPolicies(input: ListPoliciesRequest = ListPoliciesRequest { }): ListPoliciesResponse

Returns a list of policies. Policies define the permissions for team resources.

Link copied to clipboard

Returns a list of the versions for policies. Policies define the permissions for team resources.

Link copied to clipboard

Returns a list of policies for a resource.

Link copied to clipboard

Returns a list of approval sessions. For more information, see Session in the Multi-party approval User Guide.

Link copied to clipboard

Returns a list of the tags for a resource.

Link copied to clipboard

Starts the deletion process for an active approval team.

Link copied to clipboard
abstract suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

Creates or updates a resource tag. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.

Link copied to clipboard

Removes a resource tag. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.

Link copied to clipboard

Updates an approval team. You can request to update the team description, approval threshold, and approvers in the team.

Inherited functions

Link copied to clipboard
inline suspend fun MpaClient.cancelSession(crossinline block: CancelSessionRequest.Builder.() -> Unit): CancelSessionResponse

Cancels an approval session. For more information, see Session in the Multi-party approval User Guide.

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard

Creates a new approval team. For more information, see Approval team in the Multi-party approval User Guide.

Link copied to clipboard

Creates a new identity source. For more information, see Identity Source in the Multi-party approval User Guide.

Link copied to clipboard

Deletes an identity source. For more information, see Identity Source in the Multi-party approval User Guide.

Link copied to clipboard

Deletes an inactive approval team. For more information, see Team health in the Multi-party approval User Guide.

Link copied to clipboard

Returns details for an approval team.

Link copied to clipboard

Returns details for an identity source. For more information, see Identity Source in the Multi-party approval User Guide.

Link copied to clipboard

Returns details for the version of a policy. Policies define the permissions for team resources.

Link copied to clipboard

Returns details about a policy for a resource.

Link copied to clipboard
inline suspend fun MpaClient.getSession(crossinline block: GetSessionRequest.Builder.() -> Unit): GetSessionResponse

Returns details for an approval session. For more information, see Session in the Multi-party approval User Guide.

Link copied to clipboard

Returns a list of approval teams.

Link copied to clipboard

Returns a list of identity sources. For more information, see Identity Source in the Multi-party approval User Guide.

Link copied to clipboard
inline suspend fun MpaClient.listPolicies(crossinline block: ListPoliciesRequest.Builder.() -> Unit): ListPoliciesResponse

Returns a list of policies. Policies define the permissions for team resources.

Link copied to clipboard
Link copied to clipboard

Returns a list of the versions for policies. Policies define the permissions for team resources.

Link copied to clipboard

Returns a list of policies for a resource.

Link copied to clipboard
inline suspend fun MpaClient.listSessions(crossinline block: ListSessionsRequest.Builder.() -> Unit): ListSessionsResponse

Returns a list of approval sessions. For more information, see Session in the Multi-party approval User Guide.

Link copied to clipboard

Returns a list of the tags for a resource.

Link copied to clipboard

Starts the deletion process for an active approval team.

Link copied to clipboard
inline suspend fun MpaClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse

Creates or updates a resource tag. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.

Link copied to clipboard
inline suspend fun MpaClient.untagResource(crossinline block: UntagResourceRequest.Builder.() -> Unit): UntagResourceResponse

Removes a resource tag. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.

Link copied to clipboard

Updates an approval team. You can request to update the team description, approval threshold, and approvers in the team.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.