CfnCodeSecurityIntegrationPropsMixin
- class aws_cdk.mixins_preview.aws_inspectorv2.mixins.CfnCodeSecurityIntegrationPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a code security integration with a source code repository provider.
- See:
- CloudformationResource:
AWS::InspectorV2::CodeSecurityIntegration
- 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_inspectorv2 import mixins as inspectorv2_mixins cfn_code_security_integration_props_mixin = inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin(inspectorv2_mixins.CfnCodeSecurityIntegrationMixinProps( create_integration_details=inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.CreateDetailsProperty( gitlab_self_managed=inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.CreateGitLabSelfManagedIntegrationDetailProperty( access_token="accessToken", instance_url="instanceUrl" ) ), name="name", tags={ "tags_key": "tags" }, type="type", update_integration_details=inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.UpdateDetailsProperty( github=inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.UpdateGitHubIntegrationDetailProperty( code="code", installation_id="installationId" ), gitlab_self_managed=inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.UpdateGitLabSelfManagedIntegrationDetailProperty( auth_code="authCode" ) ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::InspectorV2::CodeSecurityIntegration.- Parameters:
props (
Union[CfnCodeSecurityIntegrationMixinProps,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 = ['createIntegrationDetails', 'name', 'tags', 'type', 'updateIntegrationDetails']
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
CreateDetailsProperty
- class CfnCodeSecurityIntegrationPropsMixin.CreateDetailsProperty(*, gitlab_self_managed=None)
Bases:
objectContains details required to create a code security integration with a specific repository provider.
- Parameters:
gitlab_self_managed (
Union[IResolvable,CreateGitLabSelfManagedIntegrationDetailProperty,Dict[str,Any],None]) – Details specific to creating an integration with a self-managed GitLab instance.- 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_inspectorv2 import mixins as inspectorv2_mixins create_details_property = inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.CreateDetailsProperty( gitlab_self_managed=inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.CreateGitLabSelfManagedIntegrationDetailProperty( access_token="accessToken", instance_url="instanceUrl" ) )
Attributes
- gitlab_self_managed
Details specific to creating an integration with a self-managed GitLab instance.
CreateGitLabSelfManagedIntegrationDetailProperty
- class CfnCodeSecurityIntegrationPropsMixin.CreateGitLabSelfManagedIntegrationDetailProperty(*, access_token=None, instance_url=None)
Bases:
objectContains details required to create an integration with a self-managed GitLab instance.
- Parameters:
access_token (
Optional[str]) – The personal access token used to authenticate with the self-managed GitLab instance.instance_url (
Optional[str]) – The URL of the self-managed GitLab instance.
- 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_inspectorv2 import mixins as inspectorv2_mixins create_git_lab_self_managed_integration_detail_property = inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.CreateGitLabSelfManagedIntegrationDetailProperty( access_token="accessToken", instance_url="instanceUrl" )
Attributes
- access_token
The personal access token used to authenticate with the self-managed GitLab instance.
- instance_url
The URL of the self-managed GitLab instance.
UpdateDetailsProperty
- class CfnCodeSecurityIntegrationPropsMixin.UpdateDetailsProperty(*, github=None, gitlab_self_managed=None)
Bases:
objectContains details required to update a code security integration with a specific repository provider.
- Parameters:
github (
Union[IResolvable,UpdateGitHubIntegrationDetailProperty,Dict[str,Any],None]) – Details specific to updating an integration with GitHub.gitlab_self_managed (
Union[IResolvable,UpdateGitLabSelfManagedIntegrationDetailProperty,Dict[str,Any],None]) – Details specific to updating an integration with a self-managed GitLab instance.
- 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_inspectorv2 import mixins as inspectorv2_mixins update_details_property = inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.UpdateDetailsProperty( github=inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.UpdateGitHubIntegrationDetailProperty( code="code", installation_id="installationId" ), gitlab_self_managed=inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.UpdateGitLabSelfManagedIntegrationDetailProperty( auth_code="authCode" ) )
Attributes
- github
Details specific to updating an integration with GitHub.
- gitlab_self_managed
Details specific to updating an integration with a self-managed GitLab instance.
UpdateGitHubIntegrationDetailProperty
- class CfnCodeSecurityIntegrationPropsMixin.UpdateGitHubIntegrationDetailProperty(*, code=None, installation_id=None)
Bases:
objectContains details required to update an integration with GitHub.
- Parameters:
code (
Optional[str]) – The authorization code received from GitHub to update the integration.installation_id (
Optional[str]) – The installation ID of the GitHub App associated with the integration.
- 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_inspectorv2 import mixins as inspectorv2_mixins update_git_hub_integration_detail_property = inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.UpdateGitHubIntegrationDetailProperty( code="code", installation_id="installationId" )
Attributes
- code
The authorization code received from GitHub to update the integration.
- installation_id
The installation ID of the GitHub App associated with the integration.
UpdateGitLabSelfManagedIntegrationDetailProperty
- class CfnCodeSecurityIntegrationPropsMixin.UpdateGitLabSelfManagedIntegrationDetailProperty(*, auth_code=None)
Bases:
objectContains details required to update an integration with a self-managed GitLab instance.
- Parameters:
auth_code (
Optional[str]) – The authorization code received from the self-managed GitLab instance to update the integration.- 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_inspectorv2 import mixins as inspectorv2_mixins update_git_lab_self_managed_integration_detail_property = inspectorv2_mixins.CfnCodeSecurityIntegrationPropsMixin.UpdateGitLabSelfManagedIntegrationDetailProperty( auth_code="authCode" )
Attributes
- auth_code
The authorization code received from the self-managed GitLab instance to update the integration.