CfnApprovalTeamPropsMixin
- class aws_cdk.mixins_preview.aws_mpa.mixins.CfnApprovalTeamPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a new approval team.
For more information, see Approval team in the Multi-party approval User Guide .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mpa-approvalteam.html
- CloudformationResource:
AWS::MPA::ApprovalTeam
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_mpa import mixins as mpa_mixins cfn_approval_team_props_mixin = mpa_mixins.CfnApprovalTeamPropsMixin(mpa_mixins.CfnApprovalTeamMixinProps( approval_strategy=mpa_mixins.CfnApprovalTeamPropsMixin.ApprovalStrategyProperty( mof_n=mpa_mixins.CfnApprovalTeamPropsMixin.MofNApprovalStrategyProperty( min_approvals_required=123 ) ), approvers=[mpa_mixins.CfnApprovalTeamPropsMixin.ApproverProperty( approver_id="approverId", primary_identity_id="primaryIdentityId", primary_identity_source_arn="primaryIdentitySourceArn", primary_identity_status="primaryIdentityStatus", response_time="responseTime" )], description="description", name="name", policies=[mpa_mixins.CfnApprovalTeamPropsMixin.PolicyProperty( policy_arn="policyArn" )], tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::MPA::ApprovalTeam.- Parameters:
props (
Union[CfnApprovalTeamMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['approvalStrategy', 'approvers', 'description', 'name', 'policies', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ApprovalStrategyProperty
- class CfnApprovalTeamPropsMixin.ApprovalStrategyProperty(*, mof_n=None)
Bases:
objectStrategy for how an approval team grants approval.
- Parameters:
mof_n (
Union[IResolvable,MofNApprovalStrategyProperty,Dict[str,Any],None]) – Minimum number of approvals (M) required for a total number of approvers (N).- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_mpa import mixins as mpa_mixins approval_strategy_property = mpa_mixins.CfnApprovalTeamPropsMixin.ApprovalStrategyProperty( mof_n=mpa_mixins.CfnApprovalTeamPropsMixin.MofNApprovalStrategyProperty( min_approvals_required=123 ) )
Attributes
- mof_n
Minimum number of approvals (M) required for a total number of approvers (N).
ApproverProperty
- class CfnApprovalTeamPropsMixin.ApproverProperty(*, approver_id=None, primary_identity_id=None, primary_identity_source_arn=None, primary_identity_status=None, response_time=None)
Bases:
objectContains details for an approver.
- Parameters:
approver_id (
Optional[str]) – ID for the approver.primary_identity_id (
Optional[str]) – ID for the user.primary_identity_source_arn (
Optional[str]) – Amazon Resource Name (ARN) for the identity source. The identity source manages the user authentication for approvers.primary_identity_status (
Optional[str]) – Status for the identity source. For example, if an approver has accepted a team invitation with a user authentication method managed by the identity source.response_time (
Optional[str]) – Timestamp when the approver responded to an approval team invitation.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_mpa import mixins as mpa_mixins approver_property = mpa_mixins.CfnApprovalTeamPropsMixin.ApproverProperty( approver_id="approverId", primary_identity_id="primaryIdentityId", primary_identity_source_arn="primaryIdentitySourceArn", primary_identity_status="primaryIdentityStatus", response_time="responseTime" )
Attributes
- approver_id
ID for the approver.
- primary_identity_id
ID for the user.
- primary_identity_source_arn
Amazon Resource Name (ARN) for the identity source.
The identity source manages the user authentication for approvers.
- primary_identity_status
Status for the identity source.
For example, if an approver has accepted a team invitation with a user authentication method managed by the identity source.
- response_time
Timestamp when the approver responded to an approval team invitation.
MofNApprovalStrategyProperty
- class CfnApprovalTeamPropsMixin.MofNApprovalStrategyProperty(*, min_approvals_required=None)
Bases:
objectStrategy for how an approval team grants approval.
- Parameters:
min_approvals_required (
Union[int,float,None]) – Minimum number of approvals (M) required for a total number of approvers (N).- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_mpa import mixins as mpa_mixins mof_nApproval_strategy_property = mpa_mixins.CfnApprovalTeamPropsMixin.MofNApprovalStrategyProperty( min_approvals_required=123 )
Attributes
- min_approvals_required
Minimum number of approvals (M) required for a total number of approvers (N).
PolicyProperty
- class CfnApprovalTeamPropsMixin.PolicyProperty(*, policy_arn=None)
Bases:
objectContains details for a policy.
Policies define what operations a team that define the permissions for team resources.
- Parameters:
policy_arn (
Optional[str])- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_mpa import mixins as mpa_mixins policy_property = mpa_mixins.CfnApprovalTeamPropsMixin.PolicyProperty( policy_arn="policyArn" )
Attributes