CfnAssessmentPropsMixin
- class aws_cdk.mixins_preview.aws_auditmanager.mixins.CfnAssessmentPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::AuditManager::Assessmentresource is an Audit Manager resource type that defines the scope of audit evidence collected by Audit Manager .An Audit Manager assessment is an implementation of an Audit Manager framework.
- See:
- CloudformationResource:
AWS::AuditManager::Assessment
- 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_auditmanager import mixins as auditmanager_mixins cfn_assessment_props_mixin = auditmanager_mixins.CfnAssessmentPropsMixin(auditmanager_mixins.CfnAssessmentMixinProps( assessment_reports_destination=auditmanager_mixins.CfnAssessmentPropsMixin.AssessmentReportsDestinationProperty( destination="destination", destination_type="destinationType" ), aws_account=auditmanager_mixins.CfnAssessmentPropsMixin.AWSAccountProperty( email_address="emailAddress", id="id", name="name" ), delegations=[auditmanager_mixins.CfnAssessmentPropsMixin.DelegationProperty( assessment_id="assessmentId", assessment_name="assessmentName", comment="comment", control_set_id="controlSetId", created_by="createdBy", creation_time=123, id="id", last_updated=123, role_arn="roleArn", role_type="roleType", status="status" )], description="description", framework_id="frameworkId", name="name", roles=[auditmanager_mixins.CfnAssessmentPropsMixin.RoleProperty( role_arn="roleArn", role_type="roleType" )], scope=auditmanager_mixins.CfnAssessmentPropsMixin.ScopeProperty( aws_accounts=[auditmanager_mixins.CfnAssessmentPropsMixin.AWSAccountProperty( email_address="emailAddress", id="id", name="name" )], aws_services=[auditmanager_mixins.CfnAssessmentPropsMixin.AWSServiceProperty( service_name="serviceName" )] ), status="status", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::AuditManager::Assessment.- Parameters:
props (
Union[CfnAssessmentMixinProps,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 = ['assessmentReportsDestination', 'awsAccount', 'delegations', 'description', 'frameworkId', 'name', 'roles', 'scope', 'status', '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
AWSAccountProperty
- class CfnAssessmentPropsMixin.AWSAccountProperty(*, email_address=None, id=None, name=None)
Bases:
objectThe
AWSAccountproperty type specifies the wrapper of the AWS account details, such as account ID, email address, and so on.- Parameters:
email_address (
Optional[str]) – The email address that’s associated with the AWS account .id (
Optional[str]) – The identifier for the AWS account .name (
Optional[str]) – The name of the AWS account .
- 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_auditmanager import mixins as auditmanager_mixins a_wSAccount_property = auditmanager_mixins.CfnAssessmentPropsMixin.AWSAccountProperty( email_address="emailAddress", id="id", name="name" )
Attributes
- email_address
The email address that’s associated with the AWS account .
- id
The identifier for the AWS account .
AWSServiceProperty
- class CfnAssessmentPropsMixin.AWSServiceProperty(*, service_name=None)
Bases:
objectThe
AWSServiceproperty type specifies an AWS service such as Amazon S3 , AWS CloudTrail , and so on.- Parameters:
service_name (
Optional[str]) – The name of the AWS service .- 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_auditmanager import mixins as auditmanager_mixins a_wSService_property = auditmanager_mixins.CfnAssessmentPropsMixin.AWSServiceProperty( service_name="serviceName" )
Attributes
- service_name
The name of the AWS service .
AssessmentReportsDestinationProperty
- class CfnAssessmentPropsMixin.AssessmentReportsDestinationProperty(*, destination=None, destination_type=None)
Bases:
objectThe
AssessmentReportsDestinationproperty type specifies the location in which AWS Audit Manager saves assessment reports for the given assessment.- Parameters:
destination (
Optional[str]) – The destination bucket where Audit Manager stores assessment reports.destination_type (
Optional[str]) – The destination type, such as Amazon S3.
- 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_auditmanager import mixins as auditmanager_mixins assessment_reports_destination_property = auditmanager_mixins.CfnAssessmentPropsMixin.AssessmentReportsDestinationProperty( destination="destination", destination_type="destinationType" )
Attributes
- destination
The destination bucket where Audit Manager stores assessment reports.
- destination_type
The destination type, such as Amazon S3.
DelegationProperty
- class CfnAssessmentPropsMixin.DelegationProperty(*, assessment_id=None, assessment_name=None, comment=None, control_set_id=None, created_by=None, creation_time=None, id=None, last_updated=None, role_arn=None, role_type=None, status=None)
Bases:
objectThe
Delegationproperty type specifies the assignment of a control set to a delegate for review.- Parameters:
assessment_id (
Optional[str]) – The identifier for the assessment that’s associated with the delegation.assessment_name (
Optional[str]) – The name of the assessment that’s associated with the delegation.comment (
Optional[str]) – The comment that’s related to the delegation.control_set_id (
Optional[str]) – The identifier for the control set that’s associated with the delegation.created_by (
Optional[str]) – The user or role that created the delegation. Minimum :1Maximum :100Pattern :^[a-zA-Z0-9-_()\\[\\]\\s]+$creation_time (
Union[int,float,None]) – Specifies when the delegation was created.id (
Optional[str]) – The unique identifier for the delegation.last_updated (
Union[int,float,None]) – Specifies when the delegation was last updated.role_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the IAM role.role_type (
Optional[str]) – The type of customer persona. .. epigraph:: InCreateAssessment,roleTypecan only bePROCESS_OWNER. InUpdateSettings,roleTypecan only bePROCESS_OWNER. InBatchCreateDelegationByAssessment,roleTypecan only beRESOURCE_OWNER.status (
Optional[str]) – The status of the delegation.
- 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_auditmanager import mixins as auditmanager_mixins delegation_property = auditmanager_mixins.CfnAssessmentPropsMixin.DelegationProperty( assessment_id="assessmentId", assessment_name="assessmentName", comment="comment", control_set_id="controlSetId", created_by="createdBy", creation_time=123, id="id", last_updated=123, role_arn="roleArn", role_type="roleType", status="status" )
Attributes
- assessment_id
The identifier for the assessment that’s associated with the delegation.
- assessment_name
The name of the assessment that’s associated with the delegation.
- comment
The comment that’s related to the delegation.
- control_set_id
The identifier for the control set that’s associated with the delegation.
- created_by
The user or role that created the delegation.
Minimum :
1Maximum :
100Pattern :
^[a-zA-Z0-9-_()\\[\\]\\s]+$
- creation_time
Specifies when the delegation was created.
- id
The unique identifier for the delegation.
- last_updated
Specifies when the delegation was last updated.
- role_arn
The Amazon Resource Name (ARN) of the IAM role.
- role_type
The type of customer persona.
In
CreateAssessment,roleTypecan only bePROCESS_OWNER.In
UpdateSettings,roleTypecan only bePROCESS_OWNER.In
BatchCreateDelegationByAssessment,roleTypecan only beRESOURCE_OWNER.
- status
The status of the delegation.
RoleProperty
- class CfnAssessmentPropsMixin.RoleProperty(*, role_arn=None, role_type=None)
Bases:
objectThe
Roleproperty type specifies the wrapper that contains AWS Audit Manager role information, such as the role type and IAM Amazon Resource Name (ARN).- Parameters:
role_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the IAM role.role_type (
Optional[str]) – The type of customer persona. .. epigraph:: InCreateAssessment,roleTypecan only bePROCESS_OWNER. InUpdateSettings,roleTypecan only bePROCESS_OWNER. InBatchCreateDelegationByAssessment,roleTypecan only beRESOURCE_OWNER.
- 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_auditmanager import mixins as auditmanager_mixins role_property = auditmanager_mixins.CfnAssessmentPropsMixin.RoleProperty( role_arn="roleArn", role_type="roleType" )
Attributes
- role_arn
The Amazon Resource Name (ARN) of the IAM role.
- role_type
The type of customer persona.
In
CreateAssessment,roleTypecan only bePROCESS_OWNER.In
UpdateSettings,roleTypecan only bePROCESS_OWNER.In
BatchCreateDelegationByAssessment,roleTypecan only beRESOURCE_OWNER.
ScopeProperty
- class CfnAssessmentPropsMixin.ScopeProperty(*, aws_accounts=None, aws_services=None)
Bases:
objectThe
Scopeproperty type specifies the wrapper that contains the AWS accounts and services that are in scope for the assessment.- Parameters:
aws_accounts (
Union[IResolvable,Sequence[Union[IResolvable,AWSAccountProperty,Dict[str,Any]]],None]) – The AWS accounts that are included in the scope of the assessment.aws_services (
Union[IResolvable,Sequence[Union[IResolvable,AWSServiceProperty,Dict[str,Any]]],None]) – The AWS services that are included in the scope of the assessment. .. epigraph:: This API parameter is no longer supported. If you use this parameter to specify one or more AWS services , Audit Manager ignores this input. Instead, the value forawsServiceswill show as empty.
- 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_auditmanager import mixins as auditmanager_mixins scope_property = auditmanager_mixins.CfnAssessmentPropsMixin.ScopeProperty( aws_accounts=[auditmanager_mixins.CfnAssessmentPropsMixin.AWSAccountProperty( email_address="emailAddress", id="id", name="name" )], aws_services=[auditmanager_mixins.CfnAssessmentPropsMixin.AWSServiceProperty( service_name="serviceName" )] )
Attributes
- aws_accounts
The AWS accounts that are included in the scope of the assessment.
- aws_services
The AWS services that are included in the scope of the assessment.
This API parameter is no longer supported. If you use this parameter to specify one or more AWS services , Audit Manager ignores this input. Instead, the value for
awsServiceswill show as empty.