CfnConnectorPropsMixin
- class aws_cdk.cfn_property_mixins.aws_inspectorv2.CfnConnectorPropsMixin(props, *, strategy=None)
Bases:
MixinCreates and manages a multi-cloud connector for Amazon Inspector, enabling vulnerability scanning of Azure resources.
- See:
- 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
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: - trueaws_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:
- 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.
- aws_config_connector_arn
The ARN of the AWS Config connector used for Azure resource discovery.
- azure_regions
List of Azure regions to scan.
- scope_configuration
Defines which resource types to scan and at what scope level.
AzureScopeConfigurationMapProperty
- class CfnConnectorPropsMixin.AzureScopeConfigurationMapProperty(*, container_image_scanning=None, serverless_scanning=None, vm_scanning=None)
Bases:
objectDefines which resource types to scan and at what scope level.
- Parameters:
container_image_scanning (
Union[IResolvable,ScopeConfigurationProperty,Dict[str,Any],None]) – Defines the scope of Azure resources to monitor for a specific resource type.serverless_scanning (
Union[IResolvable,ScopeConfigurationProperty,Dict[str,Any],None]) – Defines the scope of Azure resources to monitor for a specific resource type.vm_scanning (
Union[IResolvable,ScopeConfigurationProperty,Dict[str,Any],None]) – Defines the scope of Azure resources to monitor for a specific resource type.
- 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.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.
- serverless_scanning
Defines the scope of Azure resources to monitor for a specific resource type.
- vm_scanning
Defines the scope of Azure resources to monitor for a specific resource type.
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:
- 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
-
- Type:
see
- last_checked_at
-
- Type:
see
ProviderConfigurationProperty
- class CfnConnectorPropsMixin.ProviderConfigurationProperty(*, azure=None)
Bases:
object- Parameters:
azure (
Union[IResolvable,AzureProviderConfigurationProperty,Dict[str,Any],None])- 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.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
ScopeConfigurationProperty
- class CfnConnectorPropsMixin.ScopeConfigurationProperty(*, scope_type=None, scope_values=None, state=None, state_reason=None)
Bases:
objectDefines 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:
- 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
-
- Type:
see
- scope_values
List of subscription IDs.
Empty for TENANT scope.
- state
-
- Type:
see
- state_reason
Reason for the current scope state.