aws-cdk-lib 2.211.0__py3-none-any.whl → 2.213.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +398 -43
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.211.0.jsii.tgz → aws-cdk-lib@2.213.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +2 -0
- aws_cdk/aws_apigatewayv2/__init__.py +1798 -74
- aws_cdk/aws_appintegrations/__init__.py +395 -0
- aws_cdk/aws_arcregionswitch/__init__.py +118 -0
- aws_cdk/aws_batch/__init__.py +4 -4
- aws_cdk/aws_bedrock/__init__.py +18 -0
- aws_cdk/aws_billingconductor/__init__.py +3 -3
- aws_cdk/aws_cloudfront/__init__.py +19 -0
- aws_cdk/aws_codebuild/__init__.py +122 -0
- aws_cdk/aws_codepipeline/__init__.py +51 -50
- aws_cdk/aws_connect/__init__.py +40 -15
- aws_cdk/aws_deadline/__init__.py +16 -5
- aws_cdk/aws_dynamodb/__init__.py +477 -56
- aws_cdk/aws_ec2/__init__.py +266 -55
- aws_cdk/aws_ecs/__init__.py +7 -9
- aws_cdk/aws_eks/__init__.py +6 -4
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +2 -2
- aws_cdk/aws_gameliftstreams/__init__.py +7 -6
- aws_cdk/aws_glue/__init__.py +18 -9
- aws_cdk/aws_guardduty/__init__.py +1233 -113
- aws_cdk/aws_iam/__init__.py +21 -6
- aws_cdk/aws_imagebuilder/__init__.py +34 -20
- aws_cdk/aws_inspectorv2/__init__.py +1516 -0
- aws_cdk/aws_ivs/__init__.py +1 -1
- aws_cdk/aws_lakeformation/__init__.py +1 -1
- aws_cdk/aws_lambda/__init__.py +6 -6
- aws_cdk/aws_omics/__init__.py +1 -1
- aws_cdk/aws_opensearchservice/__init__.py +128 -0
- aws_cdk/aws_pcs/__init__.py +16 -8
- aws_cdk/aws_quicksight/__init__.py +81 -83
- aws_cdk/aws_rds/__init__.py +31 -163
- aws_cdk/aws_s3express/__init__.py +7 -3
- aws_cdk/aws_s3tables/__init__.py +2 -2
- aws_cdk/aws_sagemaker/__init__.py +62 -20
- aws_cdk/aws_sqs/__init__.py +4 -3
- aws_cdk/aws_stepfunctions_tasks/__init__.py +16 -9
- aws_cdk/aws_synthetics/__init__.py +116 -0
- aws_cdk/cx_api/__init__.py +22 -0
- {aws_cdk_lib-2.211.0.dist-info → aws_cdk_lib-2.213.0.dist-info}/METADATA +329 -9
- {aws_cdk_lib-2.211.0.dist-info → aws_cdk_lib-2.213.0.dist-info}/RECORD +47 -47
- {aws_cdk_lib-2.211.0.dist-info → aws_cdk_lib-2.213.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.211.0.dist-info → aws_cdk_lib-2.213.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.211.0.dist-info → aws_cdk_lib-2.213.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.211.0.dist-info → aws_cdk_lib-2.213.0.dist-info}/top_level.txt +0 -0
|
@@ -945,6 +945,1317 @@ class CfnCisScanConfigurationProps:
|
|
|
945
945
|
)
|
|
946
946
|
|
|
947
947
|
|
|
948
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
949
|
+
class CfnCodeSecurityIntegration(
|
|
950
|
+
_CfnResource_9df397a6,
|
|
951
|
+
metaclass=jsii.JSIIMeta,
|
|
952
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityIntegration",
|
|
953
|
+
):
|
|
954
|
+
'''Inspector CodeSecurityIntegration resource schema.
|
|
955
|
+
|
|
956
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityintegration.html
|
|
957
|
+
:cloudformationResource: AWS::InspectorV2::CodeSecurityIntegration
|
|
958
|
+
:exampleMetadata: fixture=_generated
|
|
959
|
+
|
|
960
|
+
Example::
|
|
961
|
+
|
|
962
|
+
# The code below shows an example of how to instantiate this type.
|
|
963
|
+
# The values are placeholders you should change.
|
|
964
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
965
|
+
|
|
966
|
+
cfn_code_security_integration = inspectorv2.CfnCodeSecurityIntegration(self, "MyCfnCodeSecurityIntegration",
|
|
967
|
+
create_integration_details=inspectorv2.CfnCodeSecurityIntegration.CreateDetailsProperty(
|
|
968
|
+
gitlab_self_managed=inspectorv2.CfnCodeSecurityIntegration.CreateGitLabSelfManagedIntegrationDetailProperty(
|
|
969
|
+
access_token="accessToken",
|
|
970
|
+
instance_url="instanceUrl"
|
|
971
|
+
)
|
|
972
|
+
),
|
|
973
|
+
name="name",
|
|
974
|
+
tags={
|
|
975
|
+
"tags_key": "tags"
|
|
976
|
+
},
|
|
977
|
+
type="type",
|
|
978
|
+
update_integration_details=inspectorv2.CfnCodeSecurityIntegration.UpdateDetailsProperty(
|
|
979
|
+
github=inspectorv2.CfnCodeSecurityIntegration.UpdateGitHubIntegrationDetailProperty(
|
|
980
|
+
code="code",
|
|
981
|
+
installation_id="installationId"
|
|
982
|
+
),
|
|
983
|
+
gitlab_self_managed=inspectorv2.CfnCodeSecurityIntegration.UpdateGitLabSelfManagedIntegrationDetailProperty(
|
|
984
|
+
auth_code="authCode"
|
|
985
|
+
)
|
|
986
|
+
)
|
|
987
|
+
)
|
|
988
|
+
'''
|
|
989
|
+
|
|
990
|
+
def __init__(
|
|
991
|
+
self,
|
|
992
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
993
|
+
id: builtins.str,
|
|
994
|
+
*,
|
|
995
|
+
create_integration_details: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCodeSecurityIntegration.CreateDetailsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
996
|
+
name: typing.Optional[builtins.str] = None,
|
|
997
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
998
|
+
type: typing.Optional[builtins.str] = None,
|
|
999
|
+
update_integration_details: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCodeSecurityIntegration.UpdateDetailsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1000
|
+
) -> None:
|
|
1001
|
+
'''
|
|
1002
|
+
:param scope: Scope in which this resource is defined.
|
|
1003
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
1004
|
+
:param create_integration_details:
|
|
1005
|
+
:param name: Code Security Integration name.
|
|
1006
|
+
:param tags:
|
|
1007
|
+
:param type:
|
|
1008
|
+
:param update_integration_details:
|
|
1009
|
+
'''
|
|
1010
|
+
if __debug__:
|
|
1011
|
+
type_hints = typing.get_type_hints(_typecheckingstub__80799b4356912cf375014b9f868e52ed37e885f4e1f3c1ddd85598a234badc5f)
|
|
1012
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
1013
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
1014
|
+
props = CfnCodeSecurityIntegrationProps(
|
|
1015
|
+
create_integration_details=create_integration_details,
|
|
1016
|
+
name=name,
|
|
1017
|
+
tags=tags,
|
|
1018
|
+
type=type,
|
|
1019
|
+
update_integration_details=update_integration_details,
|
|
1020
|
+
)
|
|
1021
|
+
|
|
1022
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
1023
|
+
|
|
1024
|
+
@jsii.member(jsii_name="inspect")
|
|
1025
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
1026
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
1027
|
+
|
|
1028
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
1029
|
+
'''
|
|
1030
|
+
if __debug__:
|
|
1031
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d2b41111bd2e5e5f072f8545fffa3c791a4d0e501f547576454bf1a1f74205d6)
|
|
1032
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
1033
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
1034
|
+
|
|
1035
|
+
@jsii.member(jsii_name="renderProperties")
|
|
1036
|
+
def _render_properties(
|
|
1037
|
+
self,
|
|
1038
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
1039
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1040
|
+
'''
|
|
1041
|
+
:param props: -
|
|
1042
|
+
'''
|
|
1043
|
+
if __debug__:
|
|
1044
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a995b0a871c5ed338d9451bbbe7895dc95cb1d56fb43ef4d2d9d854ffdeb8a66)
|
|
1045
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1046
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
1047
|
+
|
|
1048
|
+
@jsii.python.classproperty
|
|
1049
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
1050
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
1051
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
1052
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
1053
|
+
|
|
1054
|
+
@builtins.property
|
|
1055
|
+
@jsii.member(jsii_name="attrArn")
|
|
1056
|
+
def attr_arn(self) -> builtins.str:
|
|
1057
|
+
'''Code Security Integration ARN.
|
|
1058
|
+
|
|
1059
|
+
:cloudformationAttribute: Arn
|
|
1060
|
+
'''
|
|
1061
|
+
return typing.cast(builtins.str, jsii.get(self, "attrArn"))
|
|
1062
|
+
|
|
1063
|
+
@builtins.property
|
|
1064
|
+
@jsii.member(jsii_name="attrAuthorizationUrl")
|
|
1065
|
+
def attr_authorization_url(self) -> builtins.str:
|
|
1066
|
+
'''Authorization URL for OAuth flow.
|
|
1067
|
+
|
|
1068
|
+
:cloudformationAttribute: AuthorizationUrl
|
|
1069
|
+
'''
|
|
1070
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAuthorizationUrl"))
|
|
1071
|
+
|
|
1072
|
+
@builtins.property
|
|
1073
|
+
@jsii.member(jsii_name="attrCreatedAt")
|
|
1074
|
+
def attr_created_at(self) -> builtins.str:
|
|
1075
|
+
'''Creation timestamp.
|
|
1076
|
+
|
|
1077
|
+
:cloudformationAttribute: CreatedAt
|
|
1078
|
+
'''
|
|
1079
|
+
return typing.cast(builtins.str, jsii.get(self, "attrCreatedAt"))
|
|
1080
|
+
|
|
1081
|
+
@builtins.property
|
|
1082
|
+
@jsii.member(jsii_name="attrLastUpdatedAt")
|
|
1083
|
+
def attr_last_updated_at(self) -> builtins.str:
|
|
1084
|
+
'''Last update timestamp.
|
|
1085
|
+
|
|
1086
|
+
:cloudformationAttribute: LastUpdatedAt
|
|
1087
|
+
'''
|
|
1088
|
+
return typing.cast(builtins.str, jsii.get(self, "attrLastUpdatedAt"))
|
|
1089
|
+
|
|
1090
|
+
@builtins.property
|
|
1091
|
+
@jsii.member(jsii_name="attrStatus")
|
|
1092
|
+
def attr_status(self) -> builtins.str:
|
|
1093
|
+
'''
|
|
1094
|
+
:cloudformationAttribute: Status
|
|
1095
|
+
'''
|
|
1096
|
+
return typing.cast(builtins.str, jsii.get(self, "attrStatus"))
|
|
1097
|
+
|
|
1098
|
+
@builtins.property
|
|
1099
|
+
@jsii.member(jsii_name="attrStatusReason")
|
|
1100
|
+
def attr_status_reason(self) -> builtins.str:
|
|
1101
|
+
'''Reason for the current status.
|
|
1102
|
+
|
|
1103
|
+
:cloudformationAttribute: StatusReason
|
|
1104
|
+
'''
|
|
1105
|
+
return typing.cast(builtins.str, jsii.get(self, "attrStatusReason"))
|
|
1106
|
+
|
|
1107
|
+
@builtins.property
|
|
1108
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
1109
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
1110
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
1111
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
1112
|
+
|
|
1113
|
+
@builtins.property
|
|
1114
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
1115
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1116
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
1117
|
+
|
|
1118
|
+
@builtins.property
|
|
1119
|
+
@jsii.member(jsii_name="createIntegrationDetails")
|
|
1120
|
+
def create_integration_details(
|
|
1121
|
+
self,
|
|
1122
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityIntegration.CreateDetailsProperty"]]:
|
|
1123
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityIntegration.CreateDetailsProperty"]], jsii.get(self, "createIntegrationDetails"))
|
|
1124
|
+
|
|
1125
|
+
@create_integration_details.setter
|
|
1126
|
+
def create_integration_details(
|
|
1127
|
+
self,
|
|
1128
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityIntegration.CreateDetailsProperty"]],
|
|
1129
|
+
) -> None:
|
|
1130
|
+
if __debug__:
|
|
1131
|
+
type_hints = typing.get_type_hints(_typecheckingstub__95bada6a0a63eed0487660762db52cf7634424d68b180f5bdde1aa127cbc6ca1)
|
|
1132
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1133
|
+
jsii.set(self, "createIntegrationDetails", value) # pyright: ignore[reportArgumentType]
|
|
1134
|
+
|
|
1135
|
+
@builtins.property
|
|
1136
|
+
@jsii.member(jsii_name="name")
|
|
1137
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
1138
|
+
'''Code Security Integration name.'''
|
|
1139
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
|
|
1140
|
+
|
|
1141
|
+
@name.setter
|
|
1142
|
+
def name(self, value: typing.Optional[builtins.str]) -> None:
|
|
1143
|
+
if __debug__:
|
|
1144
|
+
type_hints = typing.get_type_hints(_typecheckingstub__62c672b1420b745cd7e45b7351f3382ced028744668c9771a1148fe207c23267)
|
|
1145
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1146
|
+
jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
|
|
1147
|
+
|
|
1148
|
+
@builtins.property
|
|
1149
|
+
@jsii.member(jsii_name="tags")
|
|
1150
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
1151
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], jsii.get(self, "tags"))
|
|
1152
|
+
|
|
1153
|
+
@tags.setter
|
|
1154
|
+
def tags(
|
|
1155
|
+
self,
|
|
1156
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
1157
|
+
) -> None:
|
|
1158
|
+
if __debug__:
|
|
1159
|
+
type_hints = typing.get_type_hints(_typecheckingstub__56217870c5b8873ef3b3750235b4baa957fcd999c408c688e231f957b297af0b)
|
|
1160
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1161
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
1162
|
+
|
|
1163
|
+
@builtins.property
|
|
1164
|
+
@jsii.member(jsii_name="type")
|
|
1165
|
+
def type(self) -> typing.Optional[builtins.str]:
|
|
1166
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "type"))
|
|
1167
|
+
|
|
1168
|
+
@type.setter
|
|
1169
|
+
def type(self, value: typing.Optional[builtins.str]) -> None:
|
|
1170
|
+
if __debug__:
|
|
1171
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e81de92c5a50f951f013bc7d558d9d09c3c119459f7f1a04ca44ba5291a994ee)
|
|
1172
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1173
|
+
jsii.set(self, "type", value) # pyright: ignore[reportArgumentType]
|
|
1174
|
+
|
|
1175
|
+
@builtins.property
|
|
1176
|
+
@jsii.member(jsii_name="updateIntegrationDetails")
|
|
1177
|
+
def update_integration_details(
|
|
1178
|
+
self,
|
|
1179
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityIntegration.UpdateDetailsProperty"]]:
|
|
1180
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityIntegration.UpdateDetailsProperty"]], jsii.get(self, "updateIntegrationDetails"))
|
|
1181
|
+
|
|
1182
|
+
@update_integration_details.setter
|
|
1183
|
+
def update_integration_details(
|
|
1184
|
+
self,
|
|
1185
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityIntegration.UpdateDetailsProperty"]],
|
|
1186
|
+
) -> None:
|
|
1187
|
+
if __debug__:
|
|
1188
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0c450107a89d380f98e1bb112fb4f8df187acd5d7b74c42bca8a125923588adc)
|
|
1189
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1190
|
+
jsii.set(self, "updateIntegrationDetails", value) # pyright: ignore[reportArgumentType]
|
|
1191
|
+
|
|
1192
|
+
@jsii.data_type(
|
|
1193
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityIntegration.CreateDetailsProperty",
|
|
1194
|
+
jsii_struct_bases=[],
|
|
1195
|
+
name_mapping={"gitlab_self_managed": "gitlabSelfManaged"},
|
|
1196
|
+
)
|
|
1197
|
+
class CreateDetailsProperty:
|
|
1198
|
+
def __init__(
|
|
1199
|
+
self,
|
|
1200
|
+
*,
|
|
1201
|
+
gitlab_self_managed: typing.Union[_IResolvable_da3f097b, typing.Union["CfnCodeSecurityIntegration.CreateGitLabSelfManagedIntegrationDetailProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
1202
|
+
) -> None:
|
|
1203
|
+
'''
|
|
1204
|
+
:param gitlab_self_managed:
|
|
1205
|
+
|
|
1206
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-createdetails.html
|
|
1207
|
+
:exampleMetadata: fixture=_generated
|
|
1208
|
+
|
|
1209
|
+
Example::
|
|
1210
|
+
|
|
1211
|
+
# The code below shows an example of how to instantiate this type.
|
|
1212
|
+
# The values are placeholders you should change.
|
|
1213
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
1214
|
+
|
|
1215
|
+
create_details_property = inspectorv2.CfnCodeSecurityIntegration.CreateDetailsProperty(
|
|
1216
|
+
gitlab_self_managed=inspectorv2.CfnCodeSecurityIntegration.CreateGitLabSelfManagedIntegrationDetailProperty(
|
|
1217
|
+
access_token="accessToken",
|
|
1218
|
+
instance_url="instanceUrl"
|
|
1219
|
+
)
|
|
1220
|
+
)
|
|
1221
|
+
'''
|
|
1222
|
+
if __debug__:
|
|
1223
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2262215d3482ab65dacec2a9b346848e87bce266386fcf679cd7607f925a41a9)
|
|
1224
|
+
check_type(argname="argument gitlab_self_managed", value=gitlab_self_managed, expected_type=type_hints["gitlab_self_managed"])
|
|
1225
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1226
|
+
"gitlab_self_managed": gitlab_self_managed,
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
@builtins.property
|
|
1230
|
+
def gitlab_self_managed(
|
|
1231
|
+
self,
|
|
1232
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityIntegration.CreateGitLabSelfManagedIntegrationDetailProperty"]:
|
|
1233
|
+
'''
|
|
1234
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-createdetails.html#cfn-inspectorv2-codesecurityintegration-createdetails-gitlabselfmanaged
|
|
1235
|
+
'''
|
|
1236
|
+
result = self._values.get("gitlab_self_managed")
|
|
1237
|
+
assert result is not None, "Required property 'gitlab_self_managed' is missing"
|
|
1238
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityIntegration.CreateGitLabSelfManagedIntegrationDetailProperty"], result)
|
|
1239
|
+
|
|
1240
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1241
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1242
|
+
|
|
1243
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1244
|
+
return not (rhs == self)
|
|
1245
|
+
|
|
1246
|
+
def __repr__(self) -> str:
|
|
1247
|
+
return "CreateDetailsProperty(%s)" % ", ".join(
|
|
1248
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1249
|
+
)
|
|
1250
|
+
|
|
1251
|
+
@jsii.data_type(
|
|
1252
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityIntegration.CreateGitLabSelfManagedIntegrationDetailProperty",
|
|
1253
|
+
jsii_struct_bases=[],
|
|
1254
|
+
name_mapping={"access_token": "accessToken", "instance_url": "instanceUrl"},
|
|
1255
|
+
)
|
|
1256
|
+
class CreateGitLabSelfManagedIntegrationDetailProperty:
|
|
1257
|
+
def __init__(
|
|
1258
|
+
self,
|
|
1259
|
+
*,
|
|
1260
|
+
access_token: builtins.str,
|
|
1261
|
+
instance_url: builtins.str,
|
|
1262
|
+
) -> None:
|
|
1263
|
+
'''
|
|
1264
|
+
:param access_token:
|
|
1265
|
+
:param instance_url:
|
|
1266
|
+
|
|
1267
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-creategitlabselfmanagedintegrationdetail.html
|
|
1268
|
+
:exampleMetadata: fixture=_generated
|
|
1269
|
+
|
|
1270
|
+
Example::
|
|
1271
|
+
|
|
1272
|
+
# The code below shows an example of how to instantiate this type.
|
|
1273
|
+
# The values are placeholders you should change.
|
|
1274
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
1275
|
+
|
|
1276
|
+
create_git_lab_self_managed_integration_detail_property = inspectorv2.CfnCodeSecurityIntegration.CreateGitLabSelfManagedIntegrationDetailProperty(
|
|
1277
|
+
access_token="accessToken",
|
|
1278
|
+
instance_url="instanceUrl"
|
|
1279
|
+
)
|
|
1280
|
+
'''
|
|
1281
|
+
if __debug__:
|
|
1282
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0bbc1b28a8c4770b506b8b2fbbfde8238181c9ccb84cf76f6b88eefb2a36575c)
|
|
1283
|
+
check_type(argname="argument access_token", value=access_token, expected_type=type_hints["access_token"])
|
|
1284
|
+
check_type(argname="argument instance_url", value=instance_url, expected_type=type_hints["instance_url"])
|
|
1285
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1286
|
+
"access_token": access_token,
|
|
1287
|
+
"instance_url": instance_url,
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
@builtins.property
|
|
1291
|
+
def access_token(self) -> builtins.str:
|
|
1292
|
+
'''
|
|
1293
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-creategitlabselfmanagedintegrationdetail.html#cfn-inspectorv2-codesecurityintegration-creategitlabselfmanagedintegrationdetail-accesstoken
|
|
1294
|
+
'''
|
|
1295
|
+
result = self._values.get("access_token")
|
|
1296
|
+
assert result is not None, "Required property 'access_token' is missing"
|
|
1297
|
+
return typing.cast(builtins.str, result)
|
|
1298
|
+
|
|
1299
|
+
@builtins.property
|
|
1300
|
+
def instance_url(self) -> builtins.str:
|
|
1301
|
+
'''
|
|
1302
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-creategitlabselfmanagedintegrationdetail.html#cfn-inspectorv2-codesecurityintegration-creategitlabselfmanagedintegrationdetail-instanceurl
|
|
1303
|
+
'''
|
|
1304
|
+
result = self._values.get("instance_url")
|
|
1305
|
+
assert result is not None, "Required property 'instance_url' is missing"
|
|
1306
|
+
return typing.cast(builtins.str, result)
|
|
1307
|
+
|
|
1308
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1309
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1310
|
+
|
|
1311
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1312
|
+
return not (rhs == self)
|
|
1313
|
+
|
|
1314
|
+
def __repr__(self) -> str:
|
|
1315
|
+
return "CreateGitLabSelfManagedIntegrationDetailProperty(%s)" % ", ".join(
|
|
1316
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1317
|
+
)
|
|
1318
|
+
|
|
1319
|
+
@jsii.data_type(
|
|
1320
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityIntegration.UpdateDetailsProperty",
|
|
1321
|
+
jsii_struct_bases=[],
|
|
1322
|
+
name_mapping={"github": "github", "gitlab_self_managed": "gitlabSelfManaged"},
|
|
1323
|
+
)
|
|
1324
|
+
class UpdateDetailsProperty:
|
|
1325
|
+
def __init__(
|
|
1326
|
+
self,
|
|
1327
|
+
*,
|
|
1328
|
+
github: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCodeSecurityIntegration.UpdateGitHubIntegrationDetailProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1329
|
+
gitlab_self_managed: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCodeSecurityIntegration.UpdateGitLabSelfManagedIntegrationDetailProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1330
|
+
) -> None:
|
|
1331
|
+
'''
|
|
1332
|
+
:param github:
|
|
1333
|
+
:param gitlab_self_managed:
|
|
1334
|
+
|
|
1335
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-updatedetails.html
|
|
1336
|
+
:exampleMetadata: fixture=_generated
|
|
1337
|
+
|
|
1338
|
+
Example::
|
|
1339
|
+
|
|
1340
|
+
# The code below shows an example of how to instantiate this type.
|
|
1341
|
+
# The values are placeholders you should change.
|
|
1342
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
1343
|
+
|
|
1344
|
+
update_details_property = inspectorv2.CfnCodeSecurityIntegration.UpdateDetailsProperty(
|
|
1345
|
+
github=inspectorv2.CfnCodeSecurityIntegration.UpdateGitHubIntegrationDetailProperty(
|
|
1346
|
+
code="code",
|
|
1347
|
+
installation_id="installationId"
|
|
1348
|
+
),
|
|
1349
|
+
gitlab_self_managed=inspectorv2.CfnCodeSecurityIntegration.UpdateGitLabSelfManagedIntegrationDetailProperty(
|
|
1350
|
+
auth_code="authCode"
|
|
1351
|
+
)
|
|
1352
|
+
)
|
|
1353
|
+
'''
|
|
1354
|
+
if __debug__:
|
|
1355
|
+
type_hints = typing.get_type_hints(_typecheckingstub__49eb1e2e3f4009317c4c9d3bde00d5f76e2edded22c78e79a48f4596be9ae8b8)
|
|
1356
|
+
check_type(argname="argument github", value=github, expected_type=type_hints["github"])
|
|
1357
|
+
check_type(argname="argument gitlab_self_managed", value=gitlab_self_managed, expected_type=type_hints["gitlab_self_managed"])
|
|
1358
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1359
|
+
if github is not None:
|
|
1360
|
+
self._values["github"] = github
|
|
1361
|
+
if gitlab_self_managed is not None:
|
|
1362
|
+
self._values["gitlab_self_managed"] = gitlab_self_managed
|
|
1363
|
+
|
|
1364
|
+
@builtins.property
|
|
1365
|
+
def github(
|
|
1366
|
+
self,
|
|
1367
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityIntegration.UpdateGitHubIntegrationDetailProperty"]]:
|
|
1368
|
+
'''
|
|
1369
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-updatedetails.html#cfn-inspectorv2-codesecurityintegration-updatedetails-github
|
|
1370
|
+
'''
|
|
1371
|
+
result = self._values.get("github")
|
|
1372
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityIntegration.UpdateGitHubIntegrationDetailProperty"]], result)
|
|
1373
|
+
|
|
1374
|
+
@builtins.property
|
|
1375
|
+
def gitlab_self_managed(
|
|
1376
|
+
self,
|
|
1377
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityIntegration.UpdateGitLabSelfManagedIntegrationDetailProperty"]]:
|
|
1378
|
+
'''
|
|
1379
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-updatedetails.html#cfn-inspectorv2-codesecurityintegration-updatedetails-gitlabselfmanaged
|
|
1380
|
+
'''
|
|
1381
|
+
result = self._values.get("gitlab_self_managed")
|
|
1382
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityIntegration.UpdateGitLabSelfManagedIntegrationDetailProperty"]], result)
|
|
1383
|
+
|
|
1384
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1385
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1386
|
+
|
|
1387
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1388
|
+
return not (rhs == self)
|
|
1389
|
+
|
|
1390
|
+
def __repr__(self) -> str:
|
|
1391
|
+
return "UpdateDetailsProperty(%s)" % ", ".join(
|
|
1392
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1393
|
+
)
|
|
1394
|
+
|
|
1395
|
+
@jsii.data_type(
|
|
1396
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityIntegration.UpdateGitHubIntegrationDetailProperty",
|
|
1397
|
+
jsii_struct_bases=[],
|
|
1398
|
+
name_mapping={"code": "code", "installation_id": "installationId"},
|
|
1399
|
+
)
|
|
1400
|
+
class UpdateGitHubIntegrationDetailProperty:
|
|
1401
|
+
def __init__(
|
|
1402
|
+
self,
|
|
1403
|
+
*,
|
|
1404
|
+
code: builtins.str,
|
|
1405
|
+
installation_id: builtins.str,
|
|
1406
|
+
) -> None:
|
|
1407
|
+
'''
|
|
1408
|
+
:param code:
|
|
1409
|
+
:param installation_id:
|
|
1410
|
+
|
|
1411
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-updategithubintegrationdetail.html
|
|
1412
|
+
:exampleMetadata: fixture=_generated
|
|
1413
|
+
|
|
1414
|
+
Example::
|
|
1415
|
+
|
|
1416
|
+
# The code below shows an example of how to instantiate this type.
|
|
1417
|
+
# The values are placeholders you should change.
|
|
1418
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
1419
|
+
|
|
1420
|
+
update_git_hub_integration_detail_property = inspectorv2.CfnCodeSecurityIntegration.UpdateGitHubIntegrationDetailProperty(
|
|
1421
|
+
code="code",
|
|
1422
|
+
installation_id="installationId"
|
|
1423
|
+
)
|
|
1424
|
+
'''
|
|
1425
|
+
if __debug__:
|
|
1426
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2b3487b0f19d852a82df38914d0b6e860cbf9001a42d8401b18e0a1768ad4cb7)
|
|
1427
|
+
check_type(argname="argument code", value=code, expected_type=type_hints["code"])
|
|
1428
|
+
check_type(argname="argument installation_id", value=installation_id, expected_type=type_hints["installation_id"])
|
|
1429
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1430
|
+
"code": code,
|
|
1431
|
+
"installation_id": installation_id,
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
@builtins.property
|
|
1435
|
+
def code(self) -> builtins.str:
|
|
1436
|
+
'''
|
|
1437
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-updategithubintegrationdetail.html#cfn-inspectorv2-codesecurityintegration-updategithubintegrationdetail-code
|
|
1438
|
+
'''
|
|
1439
|
+
result = self._values.get("code")
|
|
1440
|
+
assert result is not None, "Required property 'code' is missing"
|
|
1441
|
+
return typing.cast(builtins.str, result)
|
|
1442
|
+
|
|
1443
|
+
@builtins.property
|
|
1444
|
+
def installation_id(self) -> builtins.str:
|
|
1445
|
+
'''
|
|
1446
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-updategithubintegrationdetail.html#cfn-inspectorv2-codesecurityintegration-updategithubintegrationdetail-installationid
|
|
1447
|
+
'''
|
|
1448
|
+
result = self._values.get("installation_id")
|
|
1449
|
+
assert result is not None, "Required property 'installation_id' is missing"
|
|
1450
|
+
return typing.cast(builtins.str, result)
|
|
1451
|
+
|
|
1452
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1453
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1454
|
+
|
|
1455
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1456
|
+
return not (rhs == self)
|
|
1457
|
+
|
|
1458
|
+
def __repr__(self) -> str:
|
|
1459
|
+
return "UpdateGitHubIntegrationDetailProperty(%s)" % ", ".join(
|
|
1460
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1461
|
+
)
|
|
1462
|
+
|
|
1463
|
+
@jsii.data_type(
|
|
1464
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityIntegration.UpdateGitLabSelfManagedIntegrationDetailProperty",
|
|
1465
|
+
jsii_struct_bases=[],
|
|
1466
|
+
name_mapping={"auth_code": "authCode"},
|
|
1467
|
+
)
|
|
1468
|
+
class UpdateGitLabSelfManagedIntegrationDetailProperty:
|
|
1469
|
+
def __init__(self, *, auth_code: builtins.str) -> None:
|
|
1470
|
+
'''
|
|
1471
|
+
:param auth_code:
|
|
1472
|
+
|
|
1473
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-updategitlabselfmanagedintegrationdetail.html
|
|
1474
|
+
:exampleMetadata: fixture=_generated
|
|
1475
|
+
|
|
1476
|
+
Example::
|
|
1477
|
+
|
|
1478
|
+
# The code below shows an example of how to instantiate this type.
|
|
1479
|
+
# The values are placeholders you should change.
|
|
1480
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
1481
|
+
|
|
1482
|
+
update_git_lab_self_managed_integration_detail_property = inspectorv2.CfnCodeSecurityIntegration.UpdateGitLabSelfManagedIntegrationDetailProperty(
|
|
1483
|
+
auth_code="authCode"
|
|
1484
|
+
)
|
|
1485
|
+
'''
|
|
1486
|
+
if __debug__:
|
|
1487
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2e29538aad68be3e1d38e6aa515bc380b1c5dbb5fcc5c4ed65df930696a81461)
|
|
1488
|
+
check_type(argname="argument auth_code", value=auth_code, expected_type=type_hints["auth_code"])
|
|
1489
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1490
|
+
"auth_code": auth_code,
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
@builtins.property
|
|
1494
|
+
def auth_code(self) -> builtins.str:
|
|
1495
|
+
'''
|
|
1496
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityintegration-updategitlabselfmanagedintegrationdetail.html#cfn-inspectorv2-codesecurityintegration-updategitlabselfmanagedintegrationdetail-authcode
|
|
1497
|
+
'''
|
|
1498
|
+
result = self._values.get("auth_code")
|
|
1499
|
+
assert result is not None, "Required property 'auth_code' is missing"
|
|
1500
|
+
return typing.cast(builtins.str, result)
|
|
1501
|
+
|
|
1502
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1503
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1504
|
+
|
|
1505
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1506
|
+
return not (rhs == self)
|
|
1507
|
+
|
|
1508
|
+
def __repr__(self) -> str:
|
|
1509
|
+
return "UpdateGitLabSelfManagedIntegrationDetailProperty(%s)" % ", ".join(
|
|
1510
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1511
|
+
)
|
|
1512
|
+
|
|
1513
|
+
|
|
1514
|
+
@jsii.data_type(
|
|
1515
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityIntegrationProps",
|
|
1516
|
+
jsii_struct_bases=[],
|
|
1517
|
+
name_mapping={
|
|
1518
|
+
"create_integration_details": "createIntegrationDetails",
|
|
1519
|
+
"name": "name",
|
|
1520
|
+
"tags": "tags",
|
|
1521
|
+
"type": "type",
|
|
1522
|
+
"update_integration_details": "updateIntegrationDetails",
|
|
1523
|
+
},
|
|
1524
|
+
)
|
|
1525
|
+
class CfnCodeSecurityIntegrationProps:
|
|
1526
|
+
def __init__(
|
|
1527
|
+
self,
|
|
1528
|
+
*,
|
|
1529
|
+
create_integration_details: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityIntegration.CreateDetailsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1530
|
+
name: typing.Optional[builtins.str] = None,
|
|
1531
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1532
|
+
type: typing.Optional[builtins.str] = None,
|
|
1533
|
+
update_integration_details: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityIntegration.UpdateDetailsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1534
|
+
) -> None:
|
|
1535
|
+
'''Properties for defining a ``CfnCodeSecurityIntegration``.
|
|
1536
|
+
|
|
1537
|
+
:param create_integration_details:
|
|
1538
|
+
:param name: Code Security Integration name.
|
|
1539
|
+
:param tags:
|
|
1540
|
+
:param type:
|
|
1541
|
+
:param update_integration_details:
|
|
1542
|
+
|
|
1543
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityintegration.html
|
|
1544
|
+
:exampleMetadata: fixture=_generated
|
|
1545
|
+
|
|
1546
|
+
Example::
|
|
1547
|
+
|
|
1548
|
+
# The code below shows an example of how to instantiate this type.
|
|
1549
|
+
# The values are placeholders you should change.
|
|
1550
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
1551
|
+
|
|
1552
|
+
cfn_code_security_integration_props = inspectorv2.CfnCodeSecurityIntegrationProps(
|
|
1553
|
+
create_integration_details=inspectorv2.CfnCodeSecurityIntegration.CreateDetailsProperty(
|
|
1554
|
+
gitlab_self_managed=inspectorv2.CfnCodeSecurityIntegration.CreateGitLabSelfManagedIntegrationDetailProperty(
|
|
1555
|
+
access_token="accessToken",
|
|
1556
|
+
instance_url="instanceUrl"
|
|
1557
|
+
)
|
|
1558
|
+
),
|
|
1559
|
+
name="name",
|
|
1560
|
+
tags={
|
|
1561
|
+
"tags_key": "tags"
|
|
1562
|
+
},
|
|
1563
|
+
type="type",
|
|
1564
|
+
update_integration_details=inspectorv2.CfnCodeSecurityIntegration.UpdateDetailsProperty(
|
|
1565
|
+
github=inspectorv2.CfnCodeSecurityIntegration.UpdateGitHubIntegrationDetailProperty(
|
|
1566
|
+
code="code",
|
|
1567
|
+
installation_id="installationId"
|
|
1568
|
+
),
|
|
1569
|
+
gitlab_self_managed=inspectorv2.CfnCodeSecurityIntegration.UpdateGitLabSelfManagedIntegrationDetailProperty(
|
|
1570
|
+
auth_code="authCode"
|
|
1571
|
+
)
|
|
1572
|
+
)
|
|
1573
|
+
)
|
|
1574
|
+
'''
|
|
1575
|
+
if __debug__:
|
|
1576
|
+
type_hints = typing.get_type_hints(_typecheckingstub__71aafe099f5a07cc45a5a16ed7c8165fc3beaaf581b2a7075ad79583b48897ae)
|
|
1577
|
+
check_type(argname="argument create_integration_details", value=create_integration_details, expected_type=type_hints["create_integration_details"])
|
|
1578
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
1579
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
1580
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
1581
|
+
check_type(argname="argument update_integration_details", value=update_integration_details, expected_type=type_hints["update_integration_details"])
|
|
1582
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1583
|
+
if create_integration_details is not None:
|
|
1584
|
+
self._values["create_integration_details"] = create_integration_details
|
|
1585
|
+
if name is not None:
|
|
1586
|
+
self._values["name"] = name
|
|
1587
|
+
if tags is not None:
|
|
1588
|
+
self._values["tags"] = tags
|
|
1589
|
+
if type is not None:
|
|
1590
|
+
self._values["type"] = type
|
|
1591
|
+
if update_integration_details is not None:
|
|
1592
|
+
self._values["update_integration_details"] = update_integration_details
|
|
1593
|
+
|
|
1594
|
+
@builtins.property
|
|
1595
|
+
def create_integration_details(
|
|
1596
|
+
self,
|
|
1597
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCodeSecurityIntegration.CreateDetailsProperty]]:
|
|
1598
|
+
'''
|
|
1599
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityintegration.html#cfn-inspectorv2-codesecurityintegration-createintegrationdetails
|
|
1600
|
+
'''
|
|
1601
|
+
result = self._values.get("create_integration_details")
|
|
1602
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCodeSecurityIntegration.CreateDetailsProperty]], result)
|
|
1603
|
+
|
|
1604
|
+
@builtins.property
|
|
1605
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
1606
|
+
'''Code Security Integration name.
|
|
1607
|
+
|
|
1608
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityintegration.html#cfn-inspectorv2-codesecurityintegration-name
|
|
1609
|
+
'''
|
|
1610
|
+
result = self._values.get("name")
|
|
1611
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1612
|
+
|
|
1613
|
+
@builtins.property
|
|
1614
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
1615
|
+
'''
|
|
1616
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityintegration.html#cfn-inspectorv2-codesecurityintegration-tags
|
|
1617
|
+
'''
|
|
1618
|
+
result = self._values.get("tags")
|
|
1619
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
1620
|
+
|
|
1621
|
+
@builtins.property
|
|
1622
|
+
def type(self) -> typing.Optional[builtins.str]:
|
|
1623
|
+
'''
|
|
1624
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityintegration.html#cfn-inspectorv2-codesecurityintegration-type
|
|
1625
|
+
'''
|
|
1626
|
+
result = self._values.get("type")
|
|
1627
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1628
|
+
|
|
1629
|
+
@builtins.property
|
|
1630
|
+
def update_integration_details(
|
|
1631
|
+
self,
|
|
1632
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCodeSecurityIntegration.UpdateDetailsProperty]]:
|
|
1633
|
+
'''
|
|
1634
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityintegration.html#cfn-inspectorv2-codesecurityintegration-updateintegrationdetails
|
|
1635
|
+
'''
|
|
1636
|
+
result = self._values.get("update_integration_details")
|
|
1637
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCodeSecurityIntegration.UpdateDetailsProperty]], result)
|
|
1638
|
+
|
|
1639
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1640
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1641
|
+
|
|
1642
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1643
|
+
return not (rhs == self)
|
|
1644
|
+
|
|
1645
|
+
def __repr__(self) -> str:
|
|
1646
|
+
return "CfnCodeSecurityIntegrationProps(%s)" % ", ".join(
|
|
1647
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1648
|
+
)
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
1652
|
+
class CfnCodeSecurityScanConfiguration(
|
|
1653
|
+
_CfnResource_9df397a6,
|
|
1654
|
+
metaclass=jsii.JSIIMeta,
|
|
1655
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityScanConfiguration",
|
|
1656
|
+
):
|
|
1657
|
+
'''Inspector CodeSecurityScanConfiguration resource schema.
|
|
1658
|
+
|
|
1659
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityscanconfiguration.html
|
|
1660
|
+
:cloudformationResource: AWS::InspectorV2::CodeSecurityScanConfiguration
|
|
1661
|
+
:exampleMetadata: fixture=_generated
|
|
1662
|
+
|
|
1663
|
+
Example::
|
|
1664
|
+
|
|
1665
|
+
# The code below shows an example of how to instantiate this type.
|
|
1666
|
+
# The values are placeholders you should change.
|
|
1667
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
1668
|
+
|
|
1669
|
+
cfn_code_security_scan_configuration = inspectorv2.CfnCodeSecurityScanConfiguration(self, "MyCfnCodeSecurityScanConfiguration",
|
|
1670
|
+
configuration=inspectorv2.CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty(
|
|
1671
|
+
rule_set_categories=["ruleSetCategories"],
|
|
1672
|
+
|
|
1673
|
+
# the properties below are optional
|
|
1674
|
+
continuous_integration_scan_configuration=inspectorv2.CfnCodeSecurityScanConfiguration.ContinuousIntegrationScanConfigurationProperty(
|
|
1675
|
+
supported_events=["supportedEvents"]
|
|
1676
|
+
),
|
|
1677
|
+
periodic_scan_configuration=inspectorv2.CfnCodeSecurityScanConfiguration.PeriodicScanConfigurationProperty(
|
|
1678
|
+
frequency="frequency",
|
|
1679
|
+
frequency_expression="frequencyExpression"
|
|
1680
|
+
)
|
|
1681
|
+
),
|
|
1682
|
+
level="level",
|
|
1683
|
+
name="name",
|
|
1684
|
+
scope_settings=inspectorv2.CfnCodeSecurityScanConfiguration.ScopeSettingsProperty(
|
|
1685
|
+
project_selection_scope="projectSelectionScope"
|
|
1686
|
+
),
|
|
1687
|
+
tags={
|
|
1688
|
+
"tags_key": "tags"
|
|
1689
|
+
}
|
|
1690
|
+
)
|
|
1691
|
+
'''
|
|
1692
|
+
|
|
1693
|
+
def __init__(
|
|
1694
|
+
self,
|
|
1695
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
1696
|
+
id: builtins.str,
|
|
1697
|
+
*,
|
|
1698
|
+
configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1699
|
+
level: typing.Optional[builtins.str] = None,
|
|
1700
|
+
name: typing.Optional[builtins.str] = None,
|
|
1701
|
+
scope_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCodeSecurityScanConfiguration.ScopeSettingsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1702
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1703
|
+
) -> None:
|
|
1704
|
+
'''
|
|
1705
|
+
:param scope: Scope in which this resource is defined.
|
|
1706
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
1707
|
+
:param configuration:
|
|
1708
|
+
:param level:
|
|
1709
|
+
:param name: Code Security Scan Configuration name.
|
|
1710
|
+
:param scope_settings:
|
|
1711
|
+
:param tags:
|
|
1712
|
+
'''
|
|
1713
|
+
if __debug__:
|
|
1714
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1f8087fd99eb325ae09773df4a6c219dda10efe85e43341cb1f5b576a1e88cef)
|
|
1715
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
1716
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
1717
|
+
props = CfnCodeSecurityScanConfigurationProps(
|
|
1718
|
+
configuration=configuration,
|
|
1719
|
+
level=level,
|
|
1720
|
+
name=name,
|
|
1721
|
+
scope_settings=scope_settings,
|
|
1722
|
+
tags=tags,
|
|
1723
|
+
)
|
|
1724
|
+
|
|
1725
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
1726
|
+
|
|
1727
|
+
@jsii.member(jsii_name="inspect")
|
|
1728
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
1729
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
1730
|
+
|
|
1731
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
1732
|
+
'''
|
|
1733
|
+
if __debug__:
|
|
1734
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ecb6f2f1a541e759bd4ebb9f175ef2898e08b44a5a2f74698a104ebf563f6050)
|
|
1735
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
1736
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
1737
|
+
|
|
1738
|
+
@jsii.member(jsii_name="renderProperties")
|
|
1739
|
+
def _render_properties(
|
|
1740
|
+
self,
|
|
1741
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
1742
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1743
|
+
'''
|
|
1744
|
+
:param props: -
|
|
1745
|
+
'''
|
|
1746
|
+
if __debug__:
|
|
1747
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8ba67d1221ac83994db1e0ae5a5f4d8d289116bd2bbba3ba9086ac33ff847516)
|
|
1748
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1749
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
1750
|
+
|
|
1751
|
+
@jsii.python.classproperty
|
|
1752
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
1753
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
1754
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
1755
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
1756
|
+
|
|
1757
|
+
@builtins.property
|
|
1758
|
+
@jsii.member(jsii_name="attrArn")
|
|
1759
|
+
def attr_arn(self) -> builtins.str:
|
|
1760
|
+
'''Code Security Scan Configuration ARN.
|
|
1761
|
+
|
|
1762
|
+
:cloudformationAttribute: Arn
|
|
1763
|
+
'''
|
|
1764
|
+
return typing.cast(builtins.str, jsii.get(self, "attrArn"))
|
|
1765
|
+
|
|
1766
|
+
@builtins.property
|
|
1767
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
1768
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
1769
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
1770
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
1771
|
+
|
|
1772
|
+
@builtins.property
|
|
1773
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
1774
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1775
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
1776
|
+
|
|
1777
|
+
@builtins.property
|
|
1778
|
+
@jsii.member(jsii_name="configuration")
|
|
1779
|
+
def configuration(
|
|
1780
|
+
self,
|
|
1781
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty"]]:
|
|
1782
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty"]], jsii.get(self, "configuration"))
|
|
1783
|
+
|
|
1784
|
+
@configuration.setter
|
|
1785
|
+
def configuration(
|
|
1786
|
+
self,
|
|
1787
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty"]],
|
|
1788
|
+
) -> None:
|
|
1789
|
+
if __debug__:
|
|
1790
|
+
type_hints = typing.get_type_hints(_typecheckingstub__45b63b68b5efac81af01f69f6fc536a7e0c56ab5d78f7c4d82199c868ce47b16)
|
|
1791
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1792
|
+
jsii.set(self, "configuration", value) # pyright: ignore[reportArgumentType]
|
|
1793
|
+
|
|
1794
|
+
@builtins.property
|
|
1795
|
+
@jsii.member(jsii_name="level")
|
|
1796
|
+
def level(self) -> typing.Optional[builtins.str]:
|
|
1797
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "level"))
|
|
1798
|
+
|
|
1799
|
+
@level.setter
|
|
1800
|
+
def level(self, value: typing.Optional[builtins.str]) -> None:
|
|
1801
|
+
if __debug__:
|
|
1802
|
+
type_hints = typing.get_type_hints(_typecheckingstub__80291f0cd7a0cb5b5f295442d46a5d028aa373ed833a3fb0e3b6091879e1a69b)
|
|
1803
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1804
|
+
jsii.set(self, "level", value) # pyright: ignore[reportArgumentType]
|
|
1805
|
+
|
|
1806
|
+
@builtins.property
|
|
1807
|
+
@jsii.member(jsii_name="name")
|
|
1808
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
1809
|
+
'''Code Security Scan Configuration name.'''
|
|
1810
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
|
|
1811
|
+
|
|
1812
|
+
@name.setter
|
|
1813
|
+
def name(self, value: typing.Optional[builtins.str]) -> None:
|
|
1814
|
+
if __debug__:
|
|
1815
|
+
type_hints = typing.get_type_hints(_typecheckingstub__10ce312b3f34f6350a3d1ee625199c03f68c9cb605f5e399d8d24b0f3374d219)
|
|
1816
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1817
|
+
jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
|
|
1818
|
+
|
|
1819
|
+
@builtins.property
|
|
1820
|
+
@jsii.member(jsii_name="scopeSettings")
|
|
1821
|
+
def scope_settings(
|
|
1822
|
+
self,
|
|
1823
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityScanConfiguration.ScopeSettingsProperty"]]:
|
|
1824
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityScanConfiguration.ScopeSettingsProperty"]], jsii.get(self, "scopeSettings"))
|
|
1825
|
+
|
|
1826
|
+
@scope_settings.setter
|
|
1827
|
+
def scope_settings(
|
|
1828
|
+
self,
|
|
1829
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityScanConfiguration.ScopeSettingsProperty"]],
|
|
1830
|
+
) -> None:
|
|
1831
|
+
if __debug__:
|
|
1832
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2418e2e1becb18ab1d3613df2cc71f18c45d161aa5b3aa4b796643c5c109a1b8)
|
|
1833
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1834
|
+
jsii.set(self, "scopeSettings", value) # pyright: ignore[reportArgumentType]
|
|
1835
|
+
|
|
1836
|
+
@builtins.property
|
|
1837
|
+
@jsii.member(jsii_name="tags")
|
|
1838
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
1839
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], jsii.get(self, "tags"))
|
|
1840
|
+
|
|
1841
|
+
@tags.setter
|
|
1842
|
+
def tags(
|
|
1843
|
+
self,
|
|
1844
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
1845
|
+
) -> None:
|
|
1846
|
+
if __debug__:
|
|
1847
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9428e2a90cc0578e6f07997b18e25682dcdf69843515552c29dd20aa94e714a3)
|
|
1848
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1849
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
1850
|
+
|
|
1851
|
+
@jsii.data_type(
|
|
1852
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty",
|
|
1853
|
+
jsii_struct_bases=[],
|
|
1854
|
+
name_mapping={
|
|
1855
|
+
"rule_set_categories": "ruleSetCategories",
|
|
1856
|
+
"continuous_integration_scan_configuration": "continuousIntegrationScanConfiguration",
|
|
1857
|
+
"periodic_scan_configuration": "periodicScanConfiguration",
|
|
1858
|
+
},
|
|
1859
|
+
)
|
|
1860
|
+
class CodeSecurityScanConfigurationProperty:
|
|
1861
|
+
def __init__(
|
|
1862
|
+
self,
|
|
1863
|
+
*,
|
|
1864
|
+
rule_set_categories: typing.Sequence[builtins.str],
|
|
1865
|
+
continuous_integration_scan_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCodeSecurityScanConfiguration.ContinuousIntegrationScanConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1866
|
+
periodic_scan_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnCodeSecurityScanConfiguration.PeriodicScanConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1867
|
+
) -> None:
|
|
1868
|
+
'''
|
|
1869
|
+
:param rule_set_categories:
|
|
1870
|
+
:param continuous_integration_scan_configuration:
|
|
1871
|
+
:param periodic_scan_configuration:
|
|
1872
|
+
|
|
1873
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityscanconfiguration-codesecurityscanconfiguration.html
|
|
1874
|
+
:exampleMetadata: fixture=_generated
|
|
1875
|
+
|
|
1876
|
+
Example::
|
|
1877
|
+
|
|
1878
|
+
# The code below shows an example of how to instantiate this type.
|
|
1879
|
+
# The values are placeholders you should change.
|
|
1880
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
1881
|
+
|
|
1882
|
+
code_security_scan_configuration_property = inspectorv2.CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty(
|
|
1883
|
+
rule_set_categories=["ruleSetCategories"],
|
|
1884
|
+
|
|
1885
|
+
# the properties below are optional
|
|
1886
|
+
continuous_integration_scan_configuration=inspectorv2.CfnCodeSecurityScanConfiguration.ContinuousIntegrationScanConfigurationProperty(
|
|
1887
|
+
supported_events=["supportedEvents"]
|
|
1888
|
+
),
|
|
1889
|
+
periodic_scan_configuration=inspectorv2.CfnCodeSecurityScanConfiguration.PeriodicScanConfigurationProperty(
|
|
1890
|
+
frequency="frequency",
|
|
1891
|
+
frequency_expression="frequencyExpression"
|
|
1892
|
+
)
|
|
1893
|
+
)
|
|
1894
|
+
'''
|
|
1895
|
+
if __debug__:
|
|
1896
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e69a31a73796f4b8caaf249f9369b948bbd3cba1089b94bed6018c89696c89cc)
|
|
1897
|
+
check_type(argname="argument rule_set_categories", value=rule_set_categories, expected_type=type_hints["rule_set_categories"])
|
|
1898
|
+
check_type(argname="argument continuous_integration_scan_configuration", value=continuous_integration_scan_configuration, expected_type=type_hints["continuous_integration_scan_configuration"])
|
|
1899
|
+
check_type(argname="argument periodic_scan_configuration", value=periodic_scan_configuration, expected_type=type_hints["periodic_scan_configuration"])
|
|
1900
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1901
|
+
"rule_set_categories": rule_set_categories,
|
|
1902
|
+
}
|
|
1903
|
+
if continuous_integration_scan_configuration is not None:
|
|
1904
|
+
self._values["continuous_integration_scan_configuration"] = continuous_integration_scan_configuration
|
|
1905
|
+
if periodic_scan_configuration is not None:
|
|
1906
|
+
self._values["periodic_scan_configuration"] = periodic_scan_configuration
|
|
1907
|
+
|
|
1908
|
+
@builtins.property
|
|
1909
|
+
def rule_set_categories(self) -> typing.List[builtins.str]:
|
|
1910
|
+
'''
|
|
1911
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityscanconfiguration-codesecurityscanconfiguration.html#cfn-inspectorv2-codesecurityscanconfiguration-codesecurityscanconfiguration-rulesetcategories
|
|
1912
|
+
'''
|
|
1913
|
+
result = self._values.get("rule_set_categories")
|
|
1914
|
+
assert result is not None, "Required property 'rule_set_categories' is missing"
|
|
1915
|
+
return typing.cast(typing.List[builtins.str], result)
|
|
1916
|
+
|
|
1917
|
+
@builtins.property
|
|
1918
|
+
def continuous_integration_scan_configuration(
|
|
1919
|
+
self,
|
|
1920
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityScanConfiguration.ContinuousIntegrationScanConfigurationProperty"]]:
|
|
1921
|
+
'''
|
|
1922
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityscanconfiguration-codesecurityscanconfiguration.html#cfn-inspectorv2-codesecurityscanconfiguration-codesecurityscanconfiguration-continuousintegrationscanconfiguration
|
|
1923
|
+
'''
|
|
1924
|
+
result = self._values.get("continuous_integration_scan_configuration")
|
|
1925
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityScanConfiguration.ContinuousIntegrationScanConfigurationProperty"]], result)
|
|
1926
|
+
|
|
1927
|
+
@builtins.property
|
|
1928
|
+
def periodic_scan_configuration(
|
|
1929
|
+
self,
|
|
1930
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityScanConfiguration.PeriodicScanConfigurationProperty"]]:
|
|
1931
|
+
'''
|
|
1932
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityscanconfiguration-codesecurityscanconfiguration.html#cfn-inspectorv2-codesecurityscanconfiguration-codesecurityscanconfiguration-periodicscanconfiguration
|
|
1933
|
+
'''
|
|
1934
|
+
result = self._values.get("periodic_scan_configuration")
|
|
1935
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnCodeSecurityScanConfiguration.PeriodicScanConfigurationProperty"]], result)
|
|
1936
|
+
|
|
1937
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1938
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1939
|
+
|
|
1940
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1941
|
+
return not (rhs == self)
|
|
1942
|
+
|
|
1943
|
+
def __repr__(self) -> str:
|
|
1944
|
+
return "CodeSecurityScanConfigurationProperty(%s)" % ", ".join(
|
|
1945
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1946
|
+
)
|
|
1947
|
+
|
|
1948
|
+
@jsii.data_type(
|
|
1949
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityScanConfiguration.ContinuousIntegrationScanConfigurationProperty",
|
|
1950
|
+
jsii_struct_bases=[],
|
|
1951
|
+
name_mapping={"supported_events": "supportedEvents"},
|
|
1952
|
+
)
|
|
1953
|
+
class ContinuousIntegrationScanConfigurationProperty:
|
|
1954
|
+
def __init__(self, *, supported_events: typing.Sequence[builtins.str]) -> None:
|
|
1955
|
+
'''
|
|
1956
|
+
:param supported_events:
|
|
1957
|
+
|
|
1958
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityscanconfiguration-continuousintegrationscanconfiguration.html
|
|
1959
|
+
:exampleMetadata: fixture=_generated
|
|
1960
|
+
|
|
1961
|
+
Example::
|
|
1962
|
+
|
|
1963
|
+
# The code below shows an example of how to instantiate this type.
|
|
1964
|
+
# The values are placeholders you should change.
|
|
1965
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
1966
|
+
|
|
1967
|
+
continuous_integration_scan_configuration_property = inspectorv2.CfnCodeSecurityScanConfiguration.ContinuousIntegrationScanConfigurationProperty(
|
|
1968
|
+
supported_events=["supportedEvents"]
|
|
1969
|
+
)
|
|
1970
|
+
'''
|
|
1971
|
+
if __debug__:
|
|
1972
|
+
type_hints = typing.get_type_hints(_typecheckingstub__04bdb61b43cbfbc6d92a4c02a47e71f63015162a7acf1e60ef409eebcd21a9f2)
|
|
1973
|
+
check_type(argname="argument supported_events", value=supported_events, expected_type=type_hints["supported_events"])
|
|
1974
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1975
|
+
"supported_events": supported_events,
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
@builtins.property
|
|
1979
|
+
def supported_events(self) -> typing.List[builtins.str]:
|
|
1980
|
+
'''
|
|
1981
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityscanconfiguration-continuousintegrationscanconfiguration.html#cfn-inspectorv2-codesecurityscanconfiguration-continuousintegrationscanconfiguration-supportedevents
|
|
1982
|
+
'''
|
|
1983
|
+
result = self._values.get("supported_events")
|
|
1984
|
+
assert result is not None, "Required property 'supported_events' is missing"
|
|
1985
|
+
return typing.cast(typing.List[builtins.str], result)
|
|
1986
|
+
|
|
1987
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1988
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1989
|
+
|
|
1990
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1991
|
+
return not (rhs == self)
|
|
1992
|
+
|
|
1993
|
+
def __repr__(self) -> str:
|
|
1994
|
+
return "ContinuousIntegrationScanConfigurationProperty(%s)" % ", ".join(
|
|
1995
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1996
|
+
)
|
|
1997
|
+
|
|
1998
|
+
@jsii.data_type(
|
|
1999
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityScanConfiguration.PeriodicScanConfigurationProperty",
|
|
2000
|
+
jsii_struct_bases=[],
|
|
2001
|
+
name_mapping={
|
|
2002
|
+
"frequency": "frequency",
|
|
2003
|
+
"frequency_expression": "frequencyExpression",
|
|
2004
|
+
},
|
|
2005
|
+
)
|
|
2006
|
+
class PeriodicScanConfigurationProperty:
|
|
2007
|
+
def __init__(
|
|
2008
|
+
self,
|
|
2009
|
+
*,
|
|
2010
|
+
frequency: typing.Optional[builtins.str] = None,
|
|
2011
|
+
frequency_expression: typing.Optional[builtins.str] = None,
|
|
2012
|
+
) -> None:
|
|
2013
|
+
'''
|
|
2014
|
+
:param frequency:
|
|
2015
|
+
:param frequency_expression:
|
|
2016
|
+
|
|
2017
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityscanconfiguration-periodicscanconfiguration.html
|
|
2018
|
+
:exampleMetadata: fixture=_generated
|
|
2019
|
+
|
|
2020
|
+
Example::
|
|
2021
|
+
|
|
2022
|
+
# The code below shows an example of how to instantiate this type.
|
|
2023
|
+
# The values are placeholders you should change.
|
|
2024
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
2025
|
+
|
|
2026
|
+
periodic_scan_configuration_property = inspectorv2.CfnCodeSecurityScanConfiguration.PeriodicScanConfigurationProperty(
|
|
2027
|
+
frequency="frequency",
|
|
2028
|
+
frequency_expression="frequencyExpression"
|
|
2029
|
+
)
|
|
2030
|
+
'''
|
|
2031
|
+
if __debug__:
|
|
2032
|
+
type_hints = typing.get_type_hints(_typecheckingstub__901beb5d14c9e234fd835b4523197f824e50f091ed2dcfbca59aef2f1f023dde)
|
|
2033
|
+
check_type(argname="argument frequency", value=frequency, expected_type=type_hints["frequency"])
|
|
2034
|
+
check_type(argname="argument frequency_expression", value=frequency_expression, expected_type=type_hints["frequency_expression"])
|
|
2035
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2036
|
+
if frequency is not None:
|
|
2037
|
+
self._values["frequency"] = frequency
|
|
2038
|
+
if frequency_expression is not None:
|
|
2039
|
+
self._values["frequency_expression"] = frequency_expression
|
|
2040
|
+
|
|
2041
|
+
@builtins.property
|
|
2042
|
+
def frequency(self) -> typing.Optional[builtins.str]:
|
|
2043
|
+
'''
|
|
2044
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityscanconfiguration-periodicscanconfiguration.html#cfn-inspectorv2-codesecurityscanconfiguration-periodicscanconfiguration-frequency
|
|
2045
|
+
'''
|
|
2046
|
+
result = self._values.get("frequency")
|
|
2047
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2048
|
+
|
|
2049
|
+
@builtins.property
|
|
2050
|
+
def frequency_expression(self) -> typing.Optional[builtins.str]:
|
|
2051
|
+
'''
|
|
2052
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityscanconfiguration-periodicscanconfiguration.html#cfn-inspectorv2-codesecurityscanconfiguration-periodicscanconfiguration-frequencyexpression
|
|
2053
|
+
'''
|
|
2054
|
+
result = self._values.get("frequency_expression")
|
|
2055
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2056
|
+
|
|
2057
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2058
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2059
|
+
|
|
2060
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2061
|
+
return not (rhs == self)
|
|
2062
|
+
|
|
2063
|
+
def __repr__(self) -> str:
|
|
2064
|
+
return "PeriodicScanConfigurationProperty(%s)" % ", ".join(
|
|
2065
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2066
|
+
)
|
|
2067
|
+
|
|
2068
|
+
@jsii.data_type(
|
|
2069
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityScanConfiguration.ScopeSettingsProperty",
|
|
2070
|
+
jsii_struct_bases=[],
|
|
2071
|
+
name_mapping={"project_selection_scope": "projectSelectionScope"},
|
|
2072
|
+
)
|
|
2073
|
+
class ScopeSettingsProperty:
|
|
2074
|
+
def __init__(
|
|
2075
|
+
self,
|
|
2076
|
+
*,
|
|
2077
|
+
project_selection_scope: typing.Optional[builtins.str] = None,
|
|
2078
|
+
) -> None:
|
|
2079
|
+
'''
|
|
2080
|
+
:param project_selection_scope:
|
|
2081
|
+
|
|
2082
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityscanconfiguration-scopesettings.html
|
|
2083
|
+
:exampleMetadata: fixture=_generated
|
|
2084
|
+
|
|
2085
|
+
Example::
|
|
2086
|
+
|
|
2087
|
+
# The code below shows an example of how to instantiate this type.
|
|
2088
|
+
# The values are placeholders you should change.
|
|
2089
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
2090
|
+
|
|
2091
|
+
scope_settings_property = inspectorv2.CfnCodeSecurityScanConfiguration.ScopeSettingsProperty(
|
|
2092
|
+
project_selection_scope="projectSelectionScope"
|
|
2093
|
+
)
|
|
2094
|
+
'''
|
|
2095
|
+
if __debug__:
|
|
2096
|
+
type_hints = typing.get_type_hints(_typecheckingstub__911607f762372da4ac39dfe813875203be92e9a87447c67741aae32d569743dc)
|
|
2097
|
+
check_type(argname="argument project_selection_scope", value=project_selection_scope, expected_type=type_hints["project_selection_scope"])
|
|
2098
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2099
|
+
if project_selection_scope is not None:
|
|
2100
|
+
self._values["project_selection_scope"] = project_selection_scope
|
|
2101
|
+
|
|
2102
|
+
@builtins.property
|
|
2103
|
+
def project_selection_scope(self) -> typing.Optional[builtins.str]:
|
|
2104
|
+
'''
|
|
2105
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-codesecurityscanconfiguration-scopesettings.html#cfn-inspectorv2-codesecurityscanconfiguration-scopesettings-projectselectionscope
|
|
2106
|
+
'''
|
|
2107
|
+
result = self._values.get("project_selection_scope")
|
|
2108
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2109
|
+
|
|
2110
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2111
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2112
|
+
|
|
2113
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2114
|
+
return not (rhs == self)
|
|
2115
|
+
|
|
2116
|
+
def __repr__(self) -> str:
|
|
2117
|
+
return "ScopeSettingsProperty(%s)" % ", ".join(
|
|
2118
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2119
|
+
)
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
@jsii.data_type(
|
|
2123
|
+
jsii_type="aws-cdk-lib.aws_inspectorv2.CfnCodeSecurityScanConfigurationProps",
|
|
2124
|
+
jsii_struct_bases=[],
|
|
2125
|
+
name_mapping={
|
|
2126
|
+
"configuration": "configuration",
|
|
2127
|
+
"level": "level",
|
|
2128
|
+
"name": "name",
|
|
2129
|
+
"scope_settings": "scopeSettings",
|
|
2130
|
+
"tags": "tags",
|
|
2131
|
+
},
|
|
2132
|
+
)
|
|
2133
|
+
class CfnCodeSecurityScanConfigurationProps:
|
|
2134
|
+
def __init__(
|
|
2135
|
+
self,
|
|
2136
|
+
*,
|
|
2137
|
+
configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2138
|
+
level: typing.Optional[builtins.str] = None,
|
|
2139
|
+
name: typing.Optional[builtins.str] = None,
|
|
2140
|
+
scope_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityScanConfiguration.ScopeSettingsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2141
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2142
|
+
) -> None:
|
|
2143
|
+
'''Properties for defining a ``CfnCodeSecurityScanConfiguration``.
|
|
2144
|
+
|
|
2145
|
+
:param configuration:
|
|
2146
|
+
:param level:
|
|
2147
|
+
:param name: Code Security Scan Configuration name.
|
|
2148
|
+
:param scope_settings:
|
|
2149
|
+
:param tags:
|
|
2150
|
+
|
|
2151
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityscanconfiguration.html
|
|
2152
|
+
:exampleMetadata: fixture=_generated
|
|
2153
|
+
|
|
2154
|
+
Example::
|
|
2155
|
+
|
|
2156
|
+
# The code below shows an example of how to instantiate this type.
|
|
2157
|
+
# The values are placeholders you should change.
|
|
2158
|
+
from aws_cdk import aws_inspectorv2 as inspectorv2
|
|
2159
|
+
|
|
2160
|
+
cfn_code_security_scan_configuration_props = inspectorv2.CfnCodeSecurityScanConfigurationProps(
|
|
2161
|
+
configuration=inspectorv2.CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty(
|
|
2162
|
+
rule_set_categories=["ruleSetCategories"],
|
|
2163
|
+
|
|
2164
|
+
# the properties below are optional
|
|
2165
|
+
continuous_integration_scan_configuration=inspectorv2.CfnCodeSecurityScanConfiguration.ContinuousIntegrationScanConfigurationProperty(
|
|
2166
|
+
supported_events=["supportedEvents"]
|
|
2167
|
+
),
|
|
2168
|
+
periodic_scan_configuration=inspectorv2.CfnCodeSecurityScanConfiguration.PeriodicScanConfigurationProperty(
|
|
2169
|
+
frequency="frequency",
|
|
2170
|
+
frequency_expression="frequencyExpression"
|
|
2171
|
+
)
|
|
2172
|
+
),
|
|
2173
|
+
level="level",
|
|
2174
|
+
name="name",
|
|
2175
|
+
scope_settings=inspectorv2.CfnCodeSecurityScanConfiguration.ScopeSettingsProperty(
|
|
2176
|
+
project_selection_scope="projectSelectionScope"
|
|
2177
|
+
),
|
|
2178
|
+
tags={
|
|
2179
|
+
"tags_key": "tags"
|
|
2180
|
+
}
|
|
2181
|
+
)
|
|
2182
|
+
'''
|
|
2183
|
+
if __debug__:
|
|
2184
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6ea2faaa39ad7a4370f1a43aa967ae3ded5ad2ac9c212905e92dd56f603ec204)
|
|
2185
|
+
check_type(argname="argument configuration", value=configuration, expected_type=type_hints["configuration"])
|
|
2186
|
+
check_type(argname="argument level", value=level, expected_type=type_hints["level"])
|
|
2187
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
2188
|
+
check_type(argname="argument scope_settings", value=scope_settings, expected_type=type_hints["scope_settings"])
|
|
2189
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
2190
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2191
|
+
if configuration is not None:
|
|
2192
|
+
self._values["configuration"] = configuration
|
|
2193
|
+
if level is not None:
|
|
2194
|
+
self._values["level"] = level
|
|
2195
|
+
if name is not None:
|
|
2196
|
+
self._values["name"] = name
|
|
2197
|
+
if scope_settings is not None:
|
|
2198
|
+
self._values["scope_settings"] = scope_settings
|
|
2199
|
+
if tags is not None:
|
|
2200
|
+
self._values["tags"] = tags
|
|
2201
|
+
|
|
2202
|
+
@builtins.property
|
|
2203
|
+
def configuration(
|
|
2204
|
+
self,
|
|
2205
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty]]:
|
|
2206
|
+
'''
|
|
2207
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityscanconfiguration.html#cfn-inspectorv2-codesecurityscanconfiguration-configuration
|
|
2208
|
+
'''
|
|
2209
|
+
result = self._values.get("configuration")
|
|
2210
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty]], result)
|
|
2211
|
+
|
|
2212
|
+
@builtins.property
|
|
2213
|
+
def level(self) -> typing.Optional[builtins.str]:
|
|
2214
|
+
'''
|
|
2215
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityscanconfiguration.html#cfn-inspectorv2-codesecurityscanconfiguration-level
|
|
2216
|
+
'''
|
|
2217
|
+
result = self._values.get("level")
|
|
2218
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2219
|
+
|
|
2220
|
+
@builtins.property
|
|
2221
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
2222
|
+
'''Code Security Scan Configuration name.
|
|
2223
|
+
|
|
2224
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityscanconfiguration.html#cfn-inspectorv2-codesecurityscanconfiguration-name
|
|
2225
|
+
'''
|
|
2226
|
+
result = self._values.get("name")
|
|
2227
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2228
|
+
|
|
2229
|
+
@builtins.property
|
|
2230
|
+
def scope_settings(
|
|
2231
|
+
self,
|
|
2232
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCodeSecurityScanConfiguration.ScopeSettingsProperty]]:
|
|
2233
|
+
'''
|
|
2234
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityscanconfiguration.html#cfn-inspectorv2-codesecurityscanconfiguration-scopesettings
|
|
2235
|
+
'''
|
|
2236
|
+
result = self._values.get("scope_settings")
|
|
2237
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCodeSecurityScanConfiguration.ScopeSettingsProperty]], result)
|
|
2238
|
+
|
|
2239
|
+
@builtins.property
|
|
2240
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
2241
|
+
'''
|
|
2242
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-codesecurityscanconfiguration.html#cfn-inspectorv2-codesecurityscanconfiguration-tags
|
|
2243
|
+
'''
|
|
2244
|
+
result = self._values.get("tags")
|
|
2245
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
2246
|
+
|
|
2247
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2248
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2249
|
+
|
|
2250
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2251
|
+
return not (rhs == self)
|
|
2252
|
+
|
|
2253
|
+
def __repr__(self) -> str:
|
|
2254
|
+
return "CfnCodeSecurityScanConfigurationProps(%s)" % ", ".join(
|
|
2255
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2256
|
+
)
|
|
2257
|
+
|
|
2258
|
+
|
|
948
2259
|
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
949
2260
|
class CfnFilter(
|
|
950
2261
|
_CfnResource_9df397a6,
|
|
@@ -3195,6 +4506,10 @@ class CfnFilterProps:
|
|
|
3195
4506
|
__all__ = [
|
|
3196
4507
|
"CfnCisScanConfiguration",
|
|
3197
4508
|
"CfnCisScanConfigurationProps",
|
|
4509
|
+
"CfnCodeSecurityIntegration",
|
|
4510
|
+
"CfnCodeSecurityIntegrationProps",
|
|
4511
|
+
"CfnCodeSecurityScanConfiguration",
|
|
4512
|
+
"CfnCodeSecurityScanConfigurationProps",
|
|
3198
4513
|
"CfnFilter",
|
|
3199
4514
|
"CfnFilterProps",
|
|
3200
4515
|
]
|
|
@@ -3316,6 +4631,207 @@ def _typecheckingstub__e3f0430cb9cf97c73c0c85526ac298bc695a6c9d3bf5e578a6d9b5c85
|
|
|
3316
4631
|
"""Type checking stubs"""
|
|
3317
4632
|
pass
|
|
3318
4633
|
|
|
4634
|
+
def _typecheckingstub__80799b4356912cf375014b9f868e52ed37e885f4e1f3c1ddd85598a234badc5f(
|
|
4635
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
4636
|
+
id: builtins.str,
|
|
4637
|
+
*,
|
|
4638
|
+
create_integration_details: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityIntegration.CreateDetailsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4639
|
+
name: typing.Optional[builtins.str] = None,
|
|
4640
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
4641
|
+
type: typing.Optional[builtins.str] = None,
|
|
4642
|
+
update_integration_details: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityIntegration.UpdateDetailsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4643
|
+
) -> None:
|
|
4644
|
+
"""Type checking stubs"""
|
|
4645
|
+
pass
|
|
4646
|
+
|
|
4647
|
+
def _typecheckingstub__d2b41111bd2e5e5f072f8545fffa3c791a4d0e501f547576454bf1a1f74205d6(
|
|
4648
|
+
inspector: _TreeInspector_488e0dd5,
|
|
4649
|
+
) -> None:
|
|
4650
|
+
"""Type checking stubs"""
|
|
4651
|
+
pass
|
|
4652
|
+
|
|
4653
|
+
def _typecheckingstub__a995b0a871c5ed338d9451bbbe7895dc95cb1d56fb43ef4d2d9d854ffdeb8a66(
|
|
4654
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
4655
|
+
) -> None:
|
|
4656
|
+
"""Type checking stubs"""
|
|
4657
|
+
pass
|
|
4658
|
+
|
|
4659
|
+
def _typecheckingstub__95bada6a0a63eed0487660762db52cf7634424d68b180f5bdde1aa127cbc6ca1(
|
|
4660
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCodeSecurityIntegration.CreateDetailsProperty]],
|
|
4661
|
+
) -> None:
|
|
4662
|
+
"""Type checking stubs"""
|
|
4663
|
+
pass
|
|
4664
|
+
|
|
4665
|
+
def _typecheckingstub__62c672b1420b745cd7e45b7351f3382ced028744668c9771a1148fe207c23267(
|
|
4666
|
+
value: typing.Optional[builtins.str],
|
|
4667
|
+
) -> None:
|
|
4668
|
+
"""Type checking stubs"""
|
|
4669
|
+
pass
|
|
4670
|
+
|
|
4671
|
+
def _typecheckingstub__56217870c5b8873ef3b3750235b4baa957fcd999c408c688e231f957b297af0b(
|
|
4672
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
4673
|
+
) -> None:
|
|
4674
|
+
"""Type checking stubs"""
|
|
4675
|
+
pass
|
|
4676
|
+
|
|
4677
|
+
def _typecheckingstub__e81de92c5a50f951f013bc7d558d9d09c3c119459f7f1a04ca44ba5291a994ee(
|
|
4678
|
+
value: typing.Optional[builtins.str],
|
|
4679
|
+
) -> None:
|
|
4680
|
+
"""Type checking stubs"""
|
|
4681
|
+
pass
|
|
4682
|
+
|
|
4683
|
+
def _typecheckingstub__0c450107a89d380f98e1bb112fb4f8df187acd5d7b74c42bca8a125923588adc(
|
|
4684
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCodeSecurityIntegration.UpdateDetailsProperty]],
|
|
4685
|
+
) -> None:
|
|
4686
|
+
"""Type checking stubs"""
|
|
4687
|
+
pass
|
|
4688
|
+
|
|
4689
|
+
def _typecheckingstub__2262215d3482ab65dacec2a9b346848e87bce266386fcf679cd7607f925a41a9(
|
|
4690
|
+
*,
|
|
4691
|
+
gitlab_self_managed: typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityIntegration.CreateGitLabSelfManagedIntegrationDetailProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4692
|
+
) -> None:
|
|
4693
|
+
"""Type checking stubs"""
|
|
4694
|
+
pass
|
|
4695
|
+
|
|
4696
|
+
def _typecheckingstub__0bbc1b28a8c4770b506b8b2fbbfde8238181c9ccb84cf76f6b88eefb2a36575c(
|
|
4697
|
+
*,
|
|
4698
|
+
access_token: builtins.str,
|
|
4699
|
+
instance_url: builtins.str,
|
|
4700
|
+
) -> None:
|
|
4701
|
+
"""Type checking stubs"""
|
|
4702
|
+
pass
|
|
4703
|
+
|
|
4704
|
+
def _typecheckingstub__49eb1e2e3f4009317c4c9d3bde00d5f76e2edded22c78e79a48f4596be9ae8b8(
|
|
4705
|
+
*,
|
|
4706
|
+
github: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityIntegration.UpdateGitHubIntegrationDetailProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4707
|
+
gitlab_self_managed: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityIntegration.UpdateGitLabSelfManagedIntegrationDetailProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4708
|
+
) -> None:
|
|
4709
|
+
"""Type checking stubs"""
|
|
4710
|
+
pass
|
|
4711
|
+
|
|
4712
|
+
def _typecheckingstub__2b3487b0f19d852a82df38914d0b6e860cbf9001a42d8401b18e0a1768ad4cb7(
|
|
4713
|
+
*,
|
|
4714
|
+
code: builtins.str,
|
|
4715
|
+
installation_id: builtins.str,
|
|
4716
|
+
) -> None:
|
|
4717
|
+
"""Type checking stubs"""
|
|
4718
|
+
pass
|
|
4719
|
+
|
|
4720
|
+
def _typecheckingstub__2e29538aad68be3e1d38e6aa515bc380b1c5dbb5fcc5c4ed65df930696a81461(
|
|
4721
|
+
*,
|
|
4722
|
+
auth_code: builtins.str,
|
|
4723
|
+
) -> None:
|
|
4724
|
+
"""Type checking stubs"""
|
|
4725
|
+
pass
|
|
4726
|
+
|
|
4727
|
+
def _typecheckingstub__71aafe099f5a07cc45a5a16ed7c8165fc3beaaf581b2a7075ad79583b48897ae(
|
|
4728
|
+
*,
|
|
4729
|
+
create_integration_details: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityIntegration.CreateDetailsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4730
|
+
name: typing.Optional[builtins.str] = None,
|
|
4731
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
4732
|
+
type: typing.Optional[builtins.str] = None,
|
|
4733
|
+
update_integration_details: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityIntegration.UpdateDetailsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4734
|
+
) -> None:
|
|
4735
|
+
"""Type checking stubs"""
|
|
4736
|
+
pass
|
|
4737
|
+
|
|
4738
|
+
def _typecheckingstub__1f8087fd99eb325ae09773df4a6c219dda10efe85e43341cb1f5b576a1e88cef(
|
|
4739
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
4740
|
+
id: builtins.str,
|
|
4741
|
+
*,
|
|
4742
|
+
configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4743
|
+
level: typing.Optional[builtins.str] = None,
|
|
4744
|
+
name: typing.Optional[builtins.str] = None,
|
|
4745
|
+
scope_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityScanConfiguration.ScopeSettingsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4746
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
4747
|
+
) -> None:
|
|
4748
|
+
"""Type checking stubs"""
|
|
4749
|
+
pass
|
|
4750
|
+
|
|
4751
|
+
def _typecheckingstub__ecb6f2f1a541e759bd4ebb9f175ef2898e08b44a5a2f74698a104ebf563f6050(
|
|
4752
|
+
inspector: _TreeInspector_488e0dd5,
|
|
4753
|
+
) -> None:
|
|
4754
|
+
"""Type checking stubs"""
|
|
4755
|
+
pass
|
|
4756
|
+
|
|
4757
|
+
def _typecheckingstub__8ba67d1221ac83994db1e0ae5a5f4d8d289116bd2bbba3ba9086ac33ff847516(
|
|
4758
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
4759
|
+
) -> None:
|
|
4760
|
+
"""Type checking stubs"""
|
|
4761
|
+
pass
|
|
4762
|
+
|
|
4763
|
+
def _typecheckingstub__45b63b68b5efac81af01f69f6fc536a7e0c56ab5d78f7c4d82199c868ce47b16(
|
|
4764
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty]],
|
|
4765
|
+
) -> None:
|
|
4766
|
+
"""Type checking stubs"""
|
|
4767
|
+
pass
|
|
4768
|
+
|
|
4769
|
+
def _typecheckingstub__80291f0cd7a0cb5b5f295442d46a5d028aa373ed833a3fb0e3b6091879e1a69b(
|
|
4770
|
+
value: typing.Optional[builtins.str],
|
|
4771
|
+
) -> None:
|
|
4772
|
+
"""Type checking stubs"""
|
|
4773
|
+
pass
|
|
4774
|
+
|
|
4775
|
+
def _typecheckingstub__10ce312b3f34f6350a3d1ee625199c03f68c9cb605f5e399d8d24b0f3374d219(
|
|
4776
|
+
value: typing.Optional[builtins.str],
|
|
4777
|
+
) -> None:
|
|
4778
|
+
"""Type checking stubs"""
|
|
4779
|
+
pass
|
|
4780
|
+
|
|
4781
|
+
def _typecheckingstub__2418e2e1becb18ab1d3613df2cc71f18c45d161aa5b3aa4b796643c5c109a1b8(
|
|
4782
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnCodeSecurityScanConfiguration.ScopeSettingsProperty]],
|
|
4783
|
+
) -> None:
|
|
4784
|
+
"""Type checking stubs"""
|
|
4785
|
+
pass
|
|
4786
|
+
|
|
4787
|
+
def _typecheckingstub__9428e2a90cc0578e6f07997b18e25682dcdf69843515552c29dd20aa94e714a3(
|
|
4788
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
4789
|
+
) -> None:
|
|
4790
|
+
"""Type checking stubs"""
|
|
4791
|
+
pass
|
|
4792
|
+
|
|
4793
|
+
def _typecheckingstub__e69a31a73796f4b8caaf249f9369b948bbd3cba1089b94bed6018c89696c89cc(
|
|
4794
|
+
*,
|
|
4795
|
+
rule_set_categories: typing.Sequence[builtins.str],
|
|
4796
|
+
continuous_integration_scan_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityScanConfiguration.ContinuousIntegrationScanConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4797
|
+
periodic_scan_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityScanConfiguration.PeriodicScanConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4798
|
+
) -> None:
|
|
4799
|
+
"""Type checking stubs"""
|
|
4800
|
+
pass
|
|
4801
|
+
|
|
4802
|
+
def _typecheckingstub__04bdb61b43cbfbc6d92a4c02a47e71f63015162a7acf1e60ef409eebcd21a9f2(
|
|
4803
|
+
*,
|
|
4804
|
+
supported_events: typing.Sequence[builtins.str],
|
|
4805
|
+
) -> None:
|
|
4806
|
+
"""Type checking stubs"""
|
|
4807
|
+
pass
|
|
4808
|
+
|
|
4809
|
+
def _typecheckingstub__901beb5d14c9e234fd835b4523197f824e50f091ed2dcfbca59aef2f1f023dde(
|
|
4810
|
+
*,
|
|
4811
|
+
frequency: typing.Optional[builtins.str] = None,
|
|
4812
|
+
frequency_expression: typing.Optional[builtins.str] = None,
|
|
4813
|
+
) -> None:
|
|
4814
|
+
"""Type checking stubs"""
|
|
4815
|
+
pass
|
|
4816
|
+
|
|
4817
|
+
def _typecheckingstub__911607f762372da4ac39dfe813875203be92e9a87447c67741aae32d569743dc(
|
|
4818
|
+
*,
|
|
4819
|
+
project_selection_scope: typing.Optional[builtins.str] = None,
|
|
4820
|
+
) -> None:
|
|
4821
|
+
"""Type checking stubs"""
|
|
4822
|
+
pass
|
|
4823
|
+
|
|
4824
|
+
def _typecheckingstub__6ea2faaa39ad7a4370f1a43aa967ae3ded5ad2ac9c212905e92dd56f603ec204(
|
|
4825
|
+
*,
|
|
4826
|
+
configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4827
|
+
level: typing.Optional[builtins.str] = None,
|
|
4828
|
+
name: typing.Optional[builtins.str] = None,
|
|
4829
|
+
scope_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnCodeSecurityScanConfiguration.ScopeSettingsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4830
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
4831
|
+
) -> None:
|
|
4832
|
+
"""Type checking stubs"""
|
|
4833
|
+
pass
|
|
4834
|
+
|
|
3319
4835
|
def _typecheckingstub__76aaac8f8d755716225a5dd2d4902f3e7ec007381fa82a2d163553362c975c9d(
|
|
3320
4836
|
scope: _constructs_77d1e7e8.Construct,
|
|
3321
4837
|
id: builtins.str,
|