CfnConnectorPropsMixin

class aws_cdk.cfn_property_mixins.aws_inspectorv2.CfnConnectorPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates and manages a multi-cloud connector for Amazon Inspector, enabling vulnerability scanning of Azure resources.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-connector.html

CloudformationResource:

AWS::InspectorV2::Connector

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_inspectorv2 as inspectorv2
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_connector_props_mixin = inspectorv2.CfnConnectorPropsMixin(inspectorv2.CfnConnectorMixinProps(
    description="description",
    name="name",
    provider="provider",
    provider_configuration=inspectorv2.CfnConnectorPropsMixin.ProviderConfigurationProperty(
        azure=inspectorv2.CfnConnectorPropsMixin.AzureProviderConfigurationProperty(
            auto_install_vm_scanner=False,
            aws_config_connector_arn="awsConfigConnectorArn",
            azure_regions=["azureRegions"],
            scope_configuration=inspectorv2.CfnConnectorPropsMixin.AzureScopeConfigurationMapProperty(
                container_image_scanning=inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
                    scope_type="scopeType",
                    scope_values=["scopeValues"],
                    state="state",
                    state_reason="stateReason"
                ),
                serverless_scanning=inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
                    scope_type="scopeType",
                    scope_values=["scopeValues"],
                    state="state",
                    state_reason="stateReason"
                ),
                vm_scanning=inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
                    scope_type="scopeType",
                    scope_values=["scopeValues"],
                    state="state",
                    state_reason="stateReason"
                )
            )
        )
    ),
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::InspectorV2::Connector.

Parameters:
  • props (Union[CfnConnectorMixinProps, 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 = ['description', 'name', 'provider', 'providerConfiguration', 'tags']

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.

AzureProviderConfigurationProperty

class CfnConnectorPropsMixin.AzureProviderConfigurationProperty(*, auto_install_vm_scanner=None, aws_config_connector_arn=None, azure_regions=None, scope_configuration=None)

Bases: object

Parameters:
  • auto_install_vm_scanner (Union[bool, IResolvable, None]) – Whether to automatically install the VM scanner. Defaults to true. Default: - true

  • aws_config_connector_arn (Optional[str]) – The ARN of the AWS Config connector used for Azure resource discovery.

  • azure_regions (Optional[Sequence[str]]) – List of Azure regions to scan.

  • scope_configuration (Union[IResolvable, AzureScopeConfigurationMapProperty, Dict[str, Any], None]) – Defines which resource types to scan and at what scope level.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-azureproviderconfiguration.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_inspectorv2 as inspectorv2

azure_provider_configuration_property = inspectorv2.CfnConnectorPropsMixin.AzureProviderConfigurationProperty(
    auto_install_vm_scanner=False,
    aws_config_connector_arn="awsConfigConnectorArn",
    azure_regions=["azureRegions"],
    scope_configuration=inspectorv2.CfnConnectorPropsMixin.AzureScopeConfigurationMapProperty(
        container_image_scanning=inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
            scope_type="scopeType",
            scope_values=["scopeValues"],
            state="state",
            state_reason="stateReason"
        ),
        serverless_scanning=inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
            scope_type="scopeType",
            scope_values=["scopeValues"],
            state="state",
            state_reason="stateReason"
        ),
        vm_scanning=inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
            scope_type="scopeType",
            scope_values=["scopeValues"],
            state="state",
            state_reason="stateReason"
        )
    )
)

Attributes

auto_install_vm_scanner

Whether to automatically install the VM scanner.

Defaults to true.

Default:
  • true

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-azureproviderconfiguration.html#cfn-inspectorv2-connector-azureproviderconfiguration-autoinstallvmscanner

aws_config_connector_arn

The ARN of the AWS Config connector used for Azure resource discovery.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-azureproviderconfiguration.html#cfn-inspectorv2-connector-azureproviderconfiguration-awsconfigconnectorarn

azure_regions

List of Azure regions to scan.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-azureproviderconfiguration.html#cfn-inspectorv2-connector-azureproviderconfiguration-azureregions

scope_configuration

Defines which resource types to scan and at what scope level.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-azureproviderconfiguration.html#cfn-inspectorv2-connector-azureproviderconfiguration-scopeconfiguration

AzureScopeConfigurationMapProperty

class CfnConnectorPropsMixin.AzureScopeConfigurationMapProperty(*, container_image_scanning=None, serverless_scanning=None, vm_scanning=None)

Bases: object

Defines which resource types to scan and at what scope level.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-azurescopeconfigurationmap.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_inspectorv2 as inspectorv2

azure_scope_configuration_map_property = inspectorv2.CfnConnectorPropsMixin.AzureScopeConfigurationMapProperty(
    container_image_scanning=inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
        scope_type="scopeType",
        scope_values=["scopeValues"],
        state="state",
        state_reason="stateReason"
    ),
    serverless_scanning=inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
        scope_type="scopeType",
        scope_values=["scopeValues"],
        state="state",
        state_reason="stateReason"
    ),
    vm_scanning=inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
        scope_type="scopeType",
        scope_values=["scopeValues"],
        state="state",
        state_reason="stateReason"
    )
)

Attributes

container_image_scanning

Defines the scope of Azure resources to monitor for a specific resource type.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-azurescopeconfigurationmap.html#cfn-inspectorv2-connector-azurescopeconfigurationmap-containerimagescanning

serverless_scanning

Defines the scope of Azure resources to monitor for a specific resource type.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-azurescopeconfigurationmap.html#cfn-inspectorv2-connector-azurescopeconfigurationmap-serverlessscanning

vm_scanning

Defines the scope of Azure resources to monitor for a specific resource type.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-azurescopeconfigurationmap.html#cfn-inspectorv2-connector-azurescopeconfigurationmap-vmscanning

ConnectorHealthProperty

class CfnConnectorPropsMixin.ConnectorHealthProperty(*, connector_status=None, last_checked_at=None, message=None)

Bases: object

Parameters:
  • connector_status (Optional[str])

  • last_checked_at (Optional[str])

  • message (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-connectorhealth.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_inspectorv2 as inspectorv2

connector_health_property = inspectorv2.CfnConnectorPropsMixin.ConnectorHealthProperty(
    connector_status="connectorStatus",
    last_checked_at="lastCheckedAt",
    message="message"
)

Attributes

connector_status

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-connectorhealth.html#cfn-inspectorv2-connector-connectorhealth-connectorstatus

Type:

see

last_checked_at

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-connectorhealth.html#cfn-inspectorv2-connector-connectorhealth-lastcheckedat

Type:

see

message

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-connectorhealth.html#cfn-inspectorv2-connector-connectorhealth-message

Type:

see

ProviderConfigurationProperty

class CfnConnectorPropsMixin.ProviderConfigurationProperty(*, azure=None)

Bases: object

Parameters:

azure (Union[IResolvable, AzureProviderConfigurationProperty, Dict[str, Any], None])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-providerconfiguration.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_inspectorv2 as inspectorv2

provider_configuration_property = inspectorv2.CfnConnectorPropsMixin.ProviderConfigurationProperty(
    azure=inspectorv2.CfnConnectorPropsMixin.AzureProviderConfigurationProperty(
        auto_install_vm_scanner=False,
        aws_config_connector_arn="awsConfigConnectorArn",
        azure_regions=["azureRegions"],
        scope_configuration=inspectorv2.CfnConnectorPropsMixin.AzureScopeConfigurationMapProperty(
            container_image_scanning=inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
                scope_type="scopeType",
                scope_values=["scopeValues"],
                state="state",
                state_reason="stateReason"
            ),
            serverless_scanning=inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
                scope_type="scopeType",
                scope_values=["scopeValues"],
                state="state",
                state_reason="stateReason"
            ),
            vm_scanning=inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
                scope_type="scopeType",
                scope_values=["scopeValues"],
                state="state",
                state_reason="stateReason"
            )
        )
    )
)

Attributes

azure

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-providerconfiguration.html#cfn-inspectorv2-connector-providerconfiguration-azure

Type:

see

ScopeConfigurationProperty

class CfnConnectorPropsMixin.ScopeConfigurationProperty(*, scope_type=None, scope_values=None, state=None, state_reason=None)

Bases: object

Defines the scope of Azure resources to monitor for a specific resource type.

Parameters:
  • scope_type (Optional[str])

  • scope_values (Optional[Sequence[str]]) – List of subscription IDs. Empty for TENANT scope.

  • state (Optional[str])

  • state_reason (Optional[str]) – Reason for the current scope state.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-scopeconfiguration.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_inspectorv2 as inspectorv2

scope_configuration_property = inspectorv2.CfnConnectorPropsMixin.ScopeConfigurationProperty(
    scope_type="scopeType",
    scope_values=["scopeValues"],
    state="state",
    state_reason="stateReason"
)

Attributes

scope_type

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-scopeconfiguration.html#cfn-inspectorv2-connector-scopeconfiguration-scopetype

Type:

see

scope_values

List of subscription IDs.

Empty for TENANT scope.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-scopeconfiguration.html#cfn-inspectorv2-connector-scopeconfiguration-scopevalues

state

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-scopeconfiguration.html#cfn-inspectorv2-connector-scopeconfiguration-state

Type:

see

state_reason

Reason for the current scope state.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-connector-scopeconfiguration.html#cfn-inspectorv2-connector-scopeconfiguration-statereason