CfnAgentSpacePropsMixin

class aws_cdk.cfn_property_mixins.aws_securityagent.CfnAgentSpacePropsMixin(props, *, strategy=None)

Bases: Mixin

Resource Type definition for AWS::SecurityAgent::AgentSpace.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityagent-agentspace.html

CloudformationResource:

AWS::SecurityAgent::AgentSpace

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.cfn_property_mixins import aws_securityagent as securityagent
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_agent_space_props_mixin = securityagent.CfnAgentSpacePropsMixin(securityagent.CfnAgentSpaceMixinProps(
    aws_resources=securityagent.CfnAgentSpacePropsMixin.AWSResourcesProperty(
        iam_roles=["iamRoles"],
        lambda_function_arns=["lambdaFunctionArns"],
        log_groups=["logGroups"],
        s3_buckets=["s3Buckets"],
        secret_arns=["secretArns"],
        vpcs=[securityagent.CfnAgentSpacePropsMixin.VpcConfigProperty(
            security_group_arns=["securityGroupArns"],
            subnet_arns=["subnetArns"],
            vpc_arn="vpcArn"
        )]
    ),
    code_review_settings=securityagent.CfnAgentSpacePropsMixin.CodeReviewSettingsProperty(
        controls_scanning=False,
        general_purpose_scanning=False
    ),
    description="description",
    integrated_resources=[securityagent.CfnAgentSpacePropsMixin.IntegratedResourceProperty(
        integration="integration"
    )],
    kms_key_id="kmsKeyId",
    name="name",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )],
    target_domain_ids=["targetDomainIds"]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::SecurityAgent::AgentSpace.

Parameters:
  • props (Union[CfnAgentSpaceMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['awsResources', 'codeReviewSettings', 'description', 'integratedResources', 'kmsKeyId', 'name', 'tags', 'targetDomainIds']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

AWSResourcesProperty

class CfnAgentSpacePropsMixin.AWSResourcesProperty(*, iam_roles=None, lambda_function_arns=None, log_groups=None, s3_buckets=None, secret_arns=None, vpcs=None)

Bases: object

AWS resource configuration.

Parameters:
  • iam_roles (Optional[Sequence[str]]) – IAM role ARNs.

  • lambda_function_arns (Optional[Sequence[str]]) – Lambda function ARNs used to retrieve tester credentials for pentests.

  • log_groups (Optional[Sequence[str]]) – CloudWatch log group ARNs.

  • s3_buckets (Optional[Sequence[str]]) – S3 bucket ARNs.

  • secret_arns (Optional[Sequence[str]]) – SecretsManager secret ARNs used to store tester credentials for pentests.

  • vpcs (Union[IResolvable, Sequence[Union[IResolvable, VpcConfigProperty, Dict[str, Any]]], None]) – VPC configurations.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-awsresources.html

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.cfn_property_mixins import aws_securityagent as securityagent

a_wSResources_property = securityagent.CfnAgentSpacePropsMixin.AWSResourcesProperty(
    iam_roles=["iamRoles"],
    lambda_function_arns=["lambdaFunctionArns"],
    log_groups=["logGroups"],
    s3_buckets=["s3Buckets"],
    secret_arns=["secretArns"],
    vpcs=[securityagent.CfnAgentSpacePropsMixin.VpcConfigProperty(
        security_group_arns=["securityGroupArns"],
        subnet_arns=["subnetArns"],
        vpc_arn="vpcArn"
    )]
)

Attributes

iam_roles

IAM role ARNs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-awsresources.html#cfn-securityagent-agentspace-awsresources-iamroles

lambda_function_arns

Lambda function ARNs used to retrieve tester credentials for pentests.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-awsresources.html#cfn-securityagent-agentspace-awsresources-lambdafunctionarns

log_groups

CloudWatch log group ARNs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-awsresources.html#cfn-securityagent-agentspace-awsresources-loggroups

s3_buckets

S3 bucket ARNs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-awsresources.html#cfn-securityagent-agentspace-awsresources-s3buckets

secret_arns

SecretsManager secret ARNs used to store tester credentials for pentests.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-awsresources.html#cfn-securityagent-agentspace-awsresources-secretarns

vpcs

VPC configurations.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-awsresources.html#cfn-securityagent-agentspace-awsresources-vpcs

CodeReviewSettingsProperty

class CfnAgentSpacePropsMixin.CodeReviewSettingsProperty(*, controls_scanning=None, general_purpose_scanning=None)

Bases: object

Details of code review settings.

Parameters:
  • controls_scanning (Union[bool, IResolvable, None]) – Whether Controls are utilized for code review analysis.

  • general_purpose_scanning (Union[bool, IResolvable, None]) – Whether general purpose analysis is performed for code review.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-codereviewsettings.html

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.cfn_property_mixins import aws_securityagent as securityagent

code_review_settings_property = securityagent.CfnAgentSpacePropsMixin.CodeReviewSettingsProperty(
    controls_scanning=False,
    general_purpose_scanning=False
)

Attributes

controls_scanning

Whether Controls are utilized for code review analysis.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-codereviewsettings.html#cfn-securityagent-agentspace-codereviewsettings-controlsscanning

general_purpose_scanning

Whether general purpose analysis is performed for code review.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-codereviewsettings.html#cfn-securityagent-agentspace-codereviewsettings-generalpurposescanning

IntegratedResourceProperty

class CfnAgentSpacePropsMixin.IntegratedResourceProperty(*, integration=None)

Bases: object

Integrated Resource details.

Parameters:

integration (Optional[str]) – Unique identifier of the Provider Integration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-integratedresource.html

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.cfn_property_mixins import aws_securityagent as securityagent

integrated_resource_property = securityagent.CfnAgentSpacePropsMixin.IntegratedResourceProperty(
    integration="integration"
)

Attributes

integration

Unique identifier of the Provider Integration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-integratedresource.html#cfn-securityagent-agentspace-integratedresource-integration

VpcConfigProperty

class CfnAgentSpacePropsMixin.VpcConfigProperty(*, security_group_arns=None, subnet_arns=None, vpc_arn=None)

Bases: object

Customer VPC configuration that the security testing environment accesses.

Parameters:
  • security_group_arns (Optional[Sequence[str]]) – List of security group ARNs in the customer VPC.

  • subnet_arns (Optional[Sequence[str]]) – List of subnet ARNs in the customer VPC.

  • vpc_arn (Optional[str]) – ARN of the customer VPC.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-vpcconfig.html

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.cfn_property_mixins import aws_securityagent as securityagent

vpc_config_property = securityagent.CfnAgentSpacePropsMixin.VpcConfigProperty(
    security_group_arns=["securityGroupArns"],
    subnet_arns=["subnetArns"],
    vpc_arn="vpcArn"
)

Attributes

security_group_arns

List of security group ARNs in the customer VPC.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-vpcconfig.html#cfn-securityagent-agentspace-vpcconfig-securitygrouparns

subnet_arns

List of subnet ARNs in the customer VPC.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-vpcconfig.html#cfn-securityagent-agentspace-vpcconfig-subnetarns

vpc_arn

ARN of the customer VPC.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-agentspace-vpcconfig.html#cfn-securityagent-agentspace-vpcconfig-vpcarn