CfnPentestPropsMixin

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

Bases: Mixin

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

See:

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

CloudformationResource:

AWS::SecurityAgent::Pentest

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_pentest_props_mixin = securityagent.CfnPentestPropsMixin(securityagent.CfnPentestMixinProps(
    agent_space_id="agentSpaceId",
    assets=securityagent.CfnPentestPropsMixin.AssetsProperty(
        actors=[securityagent.CfnPentestPropsMixin.ActorProperty(
            authentication=securityagent.CfnPentestPropsMixin.AuthenticationProperty(
                provider_type="providerType",
                value="value"
            ),
            description="description",
            identifier="identifier",
            uris=["uris"]
        )],
        documents=[securityagent.CfnPentestPropsMixin.DocumentInfoProperty(
            artifact_id="artifactId",
            s3_location="s3Location"
        )],
        endpoints=[securityagent.CfnPentestPropsMixin.EndpointProperty(
            uri="uri"
        )],
        integrated_repositories=[securityagent.CfnPentestPropsMixin.IntegratedRepositoryProperty(
            integration_id="integrationId",
            provider_resource_id="providerResourceId"
        )],
        source_code=[securityagent.CfnPentestPropsMixin.SourceCodeRepositoryProperty(
            s3_location="s3Location"
        )]
    ),
    code_remediation_strategy="codeRemediationStrategy",
    exclude_risk_types=["excludeRiskTypes"],
    log_config=securityagent.CfnPentestPropsMixin.CloudWatchLogProperty(
        log_group="logGroup",
        log_stream="logStream"
    ),
    network_traffic_config=securityagent.CfnPentestPropsMixin.NetworkTrafficConfigProperty(
        custom_headers=[securityagent.CfnPentestPropsMixin.CustomHeaderProperty(
            name="name",
            value="value"
        )],
        rules=[securityagent.CfnPentestPropsMixin.NetworkTrafficRuleProperty(
            effect="effect",
            network_traffic_rule_type="networkTrafficRuleType",
            pattern="pattern"
        )]
    ),
    service_role="serviceRole",
    title="title",
    vpc_config=securityagent.CfnPentestPropsMixin.VpcConfigProperty(
        security_group_arns=["securityGroupArns"],
        subnet_arns=["subnetArns"],
        vpc_arn="vpcArn"
    )
),
    strategy=merge_strategy
)

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

Parameters:
  • props (Union[CfnPentestMixinProps, 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 = ['agentSpaceId', 'assets', 'codeRemediationStrategy', 'excludeRiskTypes', 'logConfig', 'networkTrafficConfig', 'serviceRole', 'title', 'vpcConfig']

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.

ActorProperty

class CfnPentestPropsMixin.ActorProperty(*, authentication=None, description=None, identifier=None, uris=None)

Bases: object

Parameters:
  • authentication (Union[IResolvable, AuthenticationProperty, Dict[str, Any], None])

  • description (Optional[str])

  • identifier (Optional[str])

  • uris (Optional[Sequence[str]])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-actor.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

actor_property = securityagent.CfnPentestPropsMixin.ActorProperty(
    authentication=securityagent.CfnPentestPropsMixin.AuthenticationProperty(
        provider_type="providerType",
        value="value"
    ),
    description="description",
    identifier="identifier",
    uris=["uris"]
)

Attributes

authentication

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-actor.html#cfn-securityagent-pentest-actor-authentication

Type:

see

description

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-actor.html#cfn-securityagent-pentest-actor-description

Type:

see

identifier

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-actor.html#cfn-securityagent-pentest-actor-identifier

Type:

see

uris

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-actor.html#cfn-securityagent-pentest-actor-uris

Type:

see

AssetsProperty

class CfnPentestPropsMixin.AssetsProperty(*, actors=None, documents=None, endpoints=None, integrated_repositories=None, source_code=None)

Bases: object

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-assets.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

assets_property = securityagent.CfnPentestPropsMixin.AssetsProperty(
    actors=[securityagent.CfnPentestPropsMixin.ActorProperty(
        authentication=securityagent.CfnPentestPropsMixin.AuthenticationProperty(
            provider_type="providerType",
            value="value"
        ),
        description="description",
        identifier="identifier",
        uris=["uris"]
    )],
    documents=[securityagent.CfnPentestPropsMixin.DocumentInfoProperty(
        artifact_id="artifactId",
        s3_location="s3Location"
    )],
    endpoints=[securityagent.CfnPentestPropsMixin.EndpointProperty(
        uri="uri"
    )],
    integrated_repositories=[securityagent.CfnPentestPropsMixin.IntegratedRepositoryProperty(
        integration_id="integrationId",
        provider_resource_id="providerResourceId"
    )],
    source_code=[securityagent.CfnPentestPropsMixin.SourceCodeRepositoryProperty(
        s3_location="s3Location"
    )]
)

Attributes

actors

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-assets.html#cfn-securityagent-pentest-assets-actors

Type:

see

documents

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-assets.html#cfn-securityagent-pentest-assets-documents

Type:

see

endpoints

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-assets.html#cfn-securityagent-pentest-assets-endpoints

Type:

see

integrated_repositories

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-assets.html#cfn-securityagent-pentest-assets-integratedrepositories

Type:

see

source_code

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-assets.html#cfn-securityagent-pentest-assets-sourcecode

Type:

see

AuthenticationProperty

class CfnPentestPropsMixin.AuthenticationProperty(*, provider_type=None, value=None)

Bases: object

Parameters:
  • provider_type (Optional[str])

  • value (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-authentication.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

authentication_property = securityagent.CfnPentestPropsMixin.AuthenticationProperty(
    provider_type="providerType",
    value="value"
)

Attributes

provider_type

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-authentication.html#cfn-securityagent-pentest-authentication-providertype

Type:

see

value

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-authentication.html#cfn-securityagent-pentest-authentication-value

Type:

see

CloudWatchLogProperty

class CfnPentestPropsMixin.CloudWatchLogProperty(*, log_group=None, log_stream=None)

Bases: object

Parameters:
  • log_group (Optional[str])

  • log_stream (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-cloudwatchlog.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

cloud_watch_log_property = securityagent.CfnPentestPropsMixin.CloudWatchLogProperty(
    log_group="logGroup",
    log_stream="logStream"
)

Attributes

log_group

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-cloudwatchlog.html#cfn-securityagent-pentest-cloudwatchlog-loggroup

Type:

see

log_stream

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-cloudwatchlog.html#cfn-securityagent-pentest-cloudwatchlog-logstream

Type:

see

CustomHeaderProperty

class CfnPentestPropsMixin.CustomHeaderProperty(*, name=None, value=None)

Bases: object

Parameters:
  • name (Optional[str])

  • value (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-customheader.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

custom_header_property = securityagent.CfnPentestPropsMixin.CustomHeaderProperty(
    name="name",
    value="value"
)

Attributes

name

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-customheader.html#cfn-securityagent-pentest-customheader-name

Type:

see

value

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-customheader.html#cfn-securityagent-pentest-customheader-value

Type:

see

DocumentInfoProperty

class CfnPentestPropsMixin.DocumentInfoProperty(*, artifact_id=None, s3_location=None)

Bases: object

Parameters:
  • artifact_id (Optional[str])

  • s3_location (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-documentinfo.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

document_info_property = securityagent.CfnPentestPropsMixin.DocumentInfoProperty(
    artifact_id="artifactId",
    s3_location="s3Location"
)

Attributes

artifact_id

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-documentinfo.html#cfn-securityagent-pentest-documentinfo-artifactid

Type:

see

s3_location

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-documentinfo.html#cfn-securityagent-pentest-documentinfo-s3location

Type:

see

EndpointProperty

class CfnPentestPropsMixin.EndpointProperty(*, uri=None)

Bases: object

Parameters:

uri (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-endpoint.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

endpoint_property = securityagent.CfnPentestPropsMixin.EndpointProperty(
    uri="uri"
)

Attributes

uri

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-endpoint.html#cfn-securityagent-pentest-endpoint-uri

Type:

see

IntegratedRepositoryProperty

class CfnPentestPropsMixin.IntegratedRepositoryProperty(*, integration_id=None, provider_resource_id=None)

Bases: object

Parameters:
  • integration_id (Optional[str])

  • provider_resource_id (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-integratedrepository.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_repository_property = securityagent.CfnPentestPropsMixin.IntegratedRepositoryProperty(
    integration_id="integrationId",
    provider_resource_id="providerResourceId"
)

Attributes

integration_id

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-integratedrepository.html#cfn-securityagent-pentest-integratedrepository-integrationid

Type:

see

provider_resource_id

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-integratedrepository.html#cfn-securityagent-pentest-integratedrepository-providerresourceid

Type:

see

NetworkTrafficConfigProperty

class CfnPentestPropsMixin.NetworkTrafficConfigProperty(*, custom_headers=None, rules=None)

Bases: object

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-networktrafficconfig.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

network_traffic_config_property = securityagent.CfnPentestPropsMixin.NetworkTrafficConfigProperty(
    custom_headers=[securityagent.CfnPentestPropsMixin.CustomHeaderProperty(
        name="name",
        value="value"
    )],
    rules=[securityagent.CfnPentestPropsMixin.NetworkTrafficRuleProperty(
        effect="effect",
        network_traffic_rule_type="networkTrafficRuleType",
        pattern="pattern"
    )]
)

Attributes

custom_headers

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-networktrafficconfig.html#cfn-securityagent-pentest-networktrafficconfig-customheaders

Type:

see

rules

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-networktrafficconfig.html#cfn-securityagent-pentest-networktrafficconfig-rules

Type:

see

NetworkTrafficRuleProperty

class CfnPentestPropsMixin.NetworkTrafficRuleProperty(*, effect=None, network_traffic_rule_type=None, pattern=None)

Bases: object

Parameters:
  • effect (Optional[str])

  • network_traffic_rule_type (Optional[str])

  • pattern (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-networktrafficrule.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

network_traffic_rule_property = securityagent.CfnPentestPropsMixin.NetworkTrafficRuleProperty(
    effect="effect",
    network_traffic_rule_type="networkTrafficRuleType",
    pattern="pattern"
)

Attributes

effect

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-networktrafficrule.html#cfn-securityagent-pentest-networktrafficrule-effect

Type:

see

network_traffic_rule_type

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-networktrafficrule.html#cfn-securityagent-pentest-networktrafficrule-networktrafficruletype

Type:

see

pattern

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-networktrafficrule.html#cfn-securityagent-pentest-networktrafficrule-pattern

Type:

see

SourceCodeRepositoryProperty

class CfnPentestPropsMixin.SourceCodeRepositoryProperty(*, s3_location=None)

Bases: object

Parameters:

s3_location (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-sourcecoderepository.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

source_code_repository_property = securityagent.CfnPentestPropsMixin.SourceCodeRepositoryProperty(
    s3_location="s3Location"
)

Attributes

s3_location

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-sourcecoderepository.html#cfn-securityagent-pentest-sourcecoderepository-s3location

Type:

see

VpcConfigProperty

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

Bases: object

Parameters:
  • security_group_arns (Optional[Sequence[str]])

  • subnet_arns (Optional[Sequence[str]])

  • vpc_arn (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityagent-pentest-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.CfnPentestPropsMixin.VpcConfigProperty(
    security_group_arns=["securityGroupArns"],
    subnet_arns=["subnetArns"],
    vpc_arn="vpcArn"
)

Attributes

security_group_arns

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

Type:

see

subnet_arns

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

Type:

see

vpc_arn

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

Type:

see