aws-cdk-lib 2.178.2__py3-none-any.whl → 2.180.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 +83 -41
- aws_cdk/_jsii/__init__.py +1 -2
- aws_cdk/_jsii/{aws-cdk-lib@2.178.2.jsii.tgz → aws-cdk-lib@2.180.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +47 -0
- aws_cdk/aws_apigateway/__init__.py +176 -35
- aws_cdk/aws_apigatewayv2/__init__.py +151 -32
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +348 -0
- aws_cdk/aws_applicationautoscaling/__init__.py +8 -8
- aws_cdk/aws_appsync/__init__.py +10 -7
- aws_cdk/aws_backup/__init__.py +89 -0
- aws_cdk/aws_batch/__init__.py +89 -50
- aws_cdk/aws_bedrock/__init__.py +506 -62
- aws_cdk/aws_cloudfront/__init__.py +1037 -146
- aws_cdk/aws_cloudfront_origins/__init__.py +1338 -144
- aws_cdk/aws_cloudtrail/__init__.py +4 -8
- aws_cdk/aws_cloudwatch/__init__.py +1 -1
- aws_cdk/aws_codebuild/__init__.py +218 -2
- aws_cdk/aws_codepipeline/__init__.py +113 -28
- aws_cdk/aws_codepipeline_actions/__init__.py +554 -63
- aws_cdk/aws_codestar/__init__.py +2 -1
- aws_cdk/aws_cognito/__init__.py +676 -29
- aws_cdk/aws_connect/__init__.py +257 -0
- aws_cdk/aws_datasync/__init__.py +279 -50
- aws_cdk/aws_deadline/__init__.py +683 -6
- aws_cdk/aws_directoryservice/__init__.py +9 -4
- aws_cdk/aws_dlm/__init__.py +2 -2
- aws_cdk/aws_dms/__init__.py +3 -3
- aws_cdk/aws_dynamodb/__init__.py +0 -54
- aws_cdk/aws_ec2/__init__.py +402 -130
- aws_cdk/aws_ecs/__init__.py +28 -43
- aws_cdk/aws_efs/__init__.py +1 -1
- aws_cdk/aws_eks/__init__.py +560 -182
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +112 -27
- aws_cdk/aws_emrcontainers/__init__.py +44 -1
- aws_cdk/aws_events/__init__.py +17 -26
- aws_cdk/aws_events_targets/__init__.py +303 -16
- aws_cdk/aws_fms/__init__.py +5 -5
- aws_cdk/aws_fsx/__init__.py +5 -4
- aws_cdk/aws_glue/__init__.py +161 -0
- aws_cdk/aws_groundstation/__init__.py +23 -1
- aws_cdk/aws_iam/__init__.py +15 -15
- aws_cdk/aws_iot/__init__.py +7 -0
- aws_cdk/aws_ivs/__init__.py +254 -77
- aws_cdk/aws_kinesis/__init__.py +689 -35
- aws_cdk/aws_lambda/__init__.py +10 -15
- aws_cdk/aws_lambda_event_sources/__init__.py +175 -2
- aws_cdk/aws_logs/__init__.py +62 -13
- aws_cdk/aws_medialive/__init__.py +314 -4
- aws_cdk/aws_opensearchserverless/__init__.py +19 -0
- aws_cdk/aws_pinpoint/__init__.py +14 -9
- aws_cdk/aws_rds/__init__.py +246 -82
- aws_cdk/aws_s3/__init__.py +287 -9
- aws_cdk/aws_s3objectlambda/__init__.py +2 -2
- aws_cdk/aws_ses/__init__.py +228 -8
- aws_cdk/aws_ssm/__init__.py +4 -5
- aws_cdk/aws_stepfunctions/__init__.py +301 -70
- aws_cdk/aws_stepfunctions_tasks/__init__.py +269 -163
- aws_cdk/aws_supportapp/__init__.py +7 -7
- aws_cdk/aws_transfer/__init__.py +820 -2
- aws_cdk/aws_wafv2/__init__.py +17 -9
- aws_cdk/custom_resources/__init__.py +23 -26
- aws_cdk/cx_api/__init__.py +16 -0
- aws_cdk/pipelines/__init__.py +2 -2
- {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.180.0.dist-info}/METADATA +1 -2
- {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.180.0.dist-info}/RECORD +69 -70
- aws_cdk/lambda_layer_kubectl/__init__.py +0 -107
- {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.180.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.180.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.180.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.180.0.dist-info}/top_level.txt +0 -0
|
@@ -1871,9 +1871,6 @@ class CfnEventDataStore(
|
|
|
1871
1871
|
- ``userIdentity.arn``
|
|
1872
1872
|
|
|
1873
1873
|
*Supported CloudTrail event record fields for network activity events*
|
|
1874
|
-
.. epigraph::
|
|
1875
|
-
|
|
1876
|
-
Network activity events is in preview release for CloudTrail and is subject to change.
|
|
1877
1874
|
|
|
1878
1875
|
- ``eventCategory`` (required)
|
|
1879
1876
|
- ``eventSource`` (required)
|
|
@@ -1983,7 +1980,7 @@ class CfnEventDataStore(
|
|
|
1983
1980
|
) -> None:
|
|
1984
1981
|
'''A single selector statement in an advanced event selector.
|
|
1985
1982
|
|
|
1986
|
-
:param field: A field in a CloudTrail event record on which to filter events to be logged. For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the field is used only for selecting events as filtering is not supported. For CloudTrail management events, supported fields include ``eventCategory`` (required), ``eventSource`` , and ``readOnly`` . The following additional fields are available for event data stores: ``eventName`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail data events, supported fields include ``eventCategory`` (required), ``resources.type`` (required), ``eventName`` , ``readOnly`` , and ``resources.ARN`` . The following additional fields are available for event data stores: ``eventSource`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail network activity events, supported fields include ``eventCategory`` (required), ``eventSource`` (required), ``eventName`` , ``errorCode`` , and ``vpcEndpointId`` . For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the only supported field is ``eventCategory`` . .. epigraph:: Selectors don't support the use of wildcards like ``*`` . To match multiple values with a single condition, you may use ``StartsWith`` , ``EndsWith`` , ``NotStartsWith`` , or ``NotEndsWith`` to explicitly match the beginning or end of the event field. - *``readOnly``* - This is an optional field that is only used for management events and data events. This field can be set to ``Equals`` with a value of ``true`` or ``false`` . If you do not add this field, CloudTrail logs both ``read`` and ``write`` events. A value of ``true`` logs only ``read`` events. A value of ``false`` logs only ``write`` events. - *``eventSource``* - This field is only used for management events, data events (for event data stores only), and network activity events. For management events for trails, this is an optional field that can be set to ``NotEquals`` ``kms.amazonaws.com`` to exclude KMS management events, or ``NotEquals`` ``rdsdata.amazonaws.com`` to exclude RDS management events. For management and data events for event data stores, you can use it to include or exclude any event source and can use any operator. For network activity events, this is a required field that only uses the ``Equals`` operator. Set this field to the event source for which you want to log network activity events. If you want to log network activity events for multiple event sources, you must create a separate field selector for each event source. The following are valid values for network activity events: - ``cloudtrail.amazonaws.com`` - ``ec2.amazonaws.com`` - ``kms.amazonaws.com`` - ``secretsmanager.amazonaws.com`` - *``eventName``* - This is an optional field that is only used for data events, management events (for event data stores only), and network activity events. You can use any operator with ``eventName`` . You can use it to filter in or filter out specific events. You can have multiple values for this field, separated by commas. - *``eventCategory``* - This field is required and must be set to ``Equals`` . - For CloudTrail management events, the value must be ``Management`` . - For CloudTrail data events, the value must be ``Data`` . - For CloudTrail network activity events, the value must be ``NetworkActivity`` . The following are used only for event data stores: - For CloudTrail Insights events, the value must be ``Insight`` . - For AWS Config configuration items, the value must be ``ConfigurationItem`` . - For Audit Manager evidence, the value must be ``Evidence`` . - For events outside of AWS , the value must be ``ActivityAuditLog`` . - *``eventType``* - This is an optional field available only for event data stores, which is used to filter management and data events on the event type. For information about available event types, see `CloudTrail record contents <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html#ct-event-type>`_ in the *AWS CloudTrail user guide* . - *``errorCode``* - This field is only used to filter CloudTrail network activity events and is optional. This is the error code to filter on. Currently, the only valid ``errorCode`` is ``VpceAccessDenied`` . ``errorCode`` can only use the ``Equals`` operator. - *``sessionCredentialFromConsole``* - This is an optional field available only for event data stores, which is used to filter management and data events based on whether the events originated from an AWS Management Console session. ``sessionCredentialFromConsole`` can only use the ``Equals`` and ``NotEquals`` operators. - *``resources.type``* - This field is required for CloudTrail data events. ``resources.type`` can only use the ``Equals`` operator. For a list of available resource types for data events, see `Data events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#logging-data-events>`_ in the *AWS CloudTrail User Guide* . You can have only one ``resources.type`` field per selector. To log events on more than one resource type, add another selector. - *``resources.ARN``* - The ``resources.ARN`` is an optional field for data events. You can use any operator with ``resources.ARN`` , but if you use ``Equals`` or ``NotEquals`` , the value must exactly match the ARN of a valid resource of the type you've specified in the template as the value of resources.type. To log all data events for all objects in a specific S3 bucket, use the ``StartsWith`` operator, and include only the bucket ARN as the matching value. For information about filtering data events on the ``resources.ARN`` field, see `Filtering data events by resources.ARN <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn>`_ in the *AWS CloudTrail User Guide* . .. epigraph:: You can't use the ``resources.ARN`` field to filter resource types that do not have ARNs. - *``userIdentity.arn``* - This is an optional field available only for event data stores, which is used to filter management and data events on the userIdentity ARN. You can use any operator with ``userIdentity.arn`` . For more information on the userIdentity element, see `CloudTrail userIdentity element <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html>`_ in the *AWS CloudTrail User Guide* . - *``vpcEndpointId``* - This field is only used to filter CloudTrail network activity events and is optional. This field identifies the VPC endpoint that the request passed through. You can use any operator with ``vpcEndpointId`` .
|
|
1983
|
+
:param field: A field in a CloudTrail event record on which to filter events to be logged. For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the field is used only for selecting events as filtering is not supported. For CloudTrail management events, supported fields include ``eventCategory`` (required), ``eventSource`` , and ``readOnly`` . The following additional fields are available for event data stores: ``eventName`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail data events, supported fields include ``eventCategory`` (required), ``resources.type`` (required), ``eventName`` , ``readOnly`` , and ``resources.ARN`` . The following additional fields are available for event data stores: ``eventSource`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail network activity events, supported fields include ``eventCategory`` (required), ``eventSource`` (required), ``eventName`` , ``errorCode`` , and ``vpcEndpointId`` . For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the only supported field is ``eventCategory`` . .. epigraph:: Selectors don't support the use of wildcards like ``*`` . To match multiple values with a single condition, you may use ``StartsWith`` , ``EndsWith`` , ``NotStartsWith`` , or ``NotEndsWith`` to explicitly match the beginning or end of the event field. - *``readOnly``* - This is an optional field that is only used for management events and data events. This field can be set to ``Equals`` with a value of ``true`` or ``false`` . If you do not add this field, CloudTrail logs both ``read`` and ``write`` events. A value of ``true`` logs only ``read`` events. A value of ``false`` logs only ``write`` events. - *``eventSource``* - This field is only used for management events, data events (for event data stores only), and network activity events. For management events for trails, this is an optional field that can be set to ``NotEquals`` ``kms.amazonaws.com`` to exclude KMS management events, or ``NotEquals`` ``rdsdata.amazonaws.com`` to exclude RDS management events. For management and data events for event data stores, you can use it to include or exclude any event source and can use any operator. For network activity events, this is a required field that only uses the ``Equals`` operator. Set this field to the event source for which you want to log network activity events. If you want to log network activity events for multiple event sources, you must create a separate field selector for each event source. The following are valid values for network activity events: - ``cloudtrail.amazonaws.com`` - ``ec2.amazonaws.com`` - ``kms.amazonaws.com`` - ``s3.amazonaws.com`` - ``secretsmanager.amazonaws.com`` - *``eventName``* - This is an optional field that is only used for data events, management events (for event data stores only), and network activity events. You can use any operator with ``eventName`` . You can use it to filter in or filter out specific events. You can have multiple values for this field, separated by commas. - *``eventCategory``* - This field is required and must be set to ``Equals`` . - For CloudTrail management events, the value must be ``Management`` . - For CloudTrail data events, the value must be ``Data`` . - For CloudTrail network activity events, the value must be ``NetworkActivity`` . The following are used only for event data stores: - For CloudTrail Insights events, the value must be ``Insight`` . - For AWS Config configuration items, the value must be ``ConfigurationItem`` . - For Audit Manager evidence, the value must be ``Evidence`` . - For events outside of AWS , the value must be ``ActivityAuditLog`` . - *``eventType``* - This is an optional field available only for event data stores, which is used to filter management and data events on the event type. For information about available event types, see `CloudTrail record contents <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html#ct-event-type>`_ in the *AWS CloudTrail user guide* . - *``errorCode``* - This field is only used to filter CloudTrail network activity events and is optional. This is the error code to filter on. Currently, the only valid ``errorCode`` is ``VpceAccessDenied`` . ``errorCode`` can only use the ``Equals`` operator. - *``sessionCredentialFromConsole``* - This is an optional field available only for event data stores, which is used to filter management and data events based on whether the events originated from an AWS Management Console session. ``sessionCredentialFromConsole`` can only use the ``Equals`` and ``NotEquals`` operators. - *``resources.type``* - This field is required for CloudTrail data events. ``resources.type`` can only use the ``Equals`` operator. For a list of available resource types for data events, see `Data events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#logging-data-events>`_ in the *AWS CloudTrail User Guide* . You can have only one ``resources.type`` field per selector. To log events on more than one resource type, add another selector. - *``resources.ARN``* - The ``resources.ARN`` is an optional field for data events. You can use any operator with ``resources.ARN`` , but if you use ``Equals`` or ``NotEquals`` , the value must exactly match the ARN of a valid resource of the type you've specified in the template as the value of resources.type. To log all data events for all objects in a specific S3 bucket, use the ``StartsWith`` operator, and include only the bucket ARN as the matching value. For information about filtering data events on the ``resources.ARN`` field, see `Filtering data events by resources.ARN <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn>`_ in the *AWS CloudTrail User Guide* . .. epigraph:: You can't use the ``resources.ARN`` field to filter resource types that do not have ARNs. - *``userIdentity.arn``* - This is an optional field available only for event data stores, which is used to filter management and data events on the userIdentity ARN. You can use any operator with ``userIdentity.arn`` . For more information on the userIdentity element, see `CloudTrail userIdentity element <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html>`_ in the *AWS CloudTrail User Guide* . - *``vpcEndpointId``* - This field is only used to filter CloudTrail network activity events and is optional. This field identifies the VPC endpoint that the request passed through. You can use any operator with ``vpcEndpointId`` .
|
|
1987
1984
|
:param ends_with: An operator that includes events that match the last few characters of the event record field specified as the value of ``Field`` .
|
|
1988
1985
|
:param equal_to: An operator that includes events that match the exact value of the event record field specified as the value of ``Field`` . This is the only valid operator that you can use with the ``readOnly`` , ``eventCategory`` , and ``resources.type`` fields.
|
|
1989
1986
|
:param not_ends_with: An operator that excludes events that match the last few characters of the event record field specified as the value of ``Field`` .
|
|
@@ -2068,6 +2065,7 @@ class CfnEventDataStore(
|
|
|
2068
2065
|
- ``cloudtrail.amazonaws.com``
|
|
2069
2066
|
- ``ec2.amazonaws.com``
|
|
2070
2067
|
- ``kms.amazonaws.com``
|
|
2068
|
+
- ``s3.amazonaws.com``
|
|
2071
2069
|
- ``secretsmanager.amazonaws.com``
|
|
2072
2070
|
- *``eventName``* - This is an optional field that is only used for data events, management events (for event data stores only), and network activity events. You can use any operator with ``eventName`` . You can use it to filter in or filter out specific events. You can have multiple values for this field, separated by commas.
|
|
2073
2071
|
- *``eventCategory``* - This field is required and must be set to ``Equals`` .
|
|
@@ -3279,9 +3277,6 @@ class CfnTrail(
|
|
|
3279
3277
|
- ``userIdentity.arn``
|
|
3280
3278
|
|
|
3281
3279
|
*Supported CloudTrail event record fields for network activity events*
|
|
3282
|
-
.. epigraph::
|
|
3283
|
-
|
|
3284
|
-
Network activity events is in preview release for CloudTrail and is subject to change.
|
|
3285
3280
|
|
|
3286
3281
|
- ``eventCategory`` (required)
|
|
3287
3282
|
- ``eventSource`` (required)
|
|
@@ -3391,7 +3386,7 @@ class CfnTrail(
|
|
|
3391
3386
|
) -> None:
|
|
3392
3387
|
'''A single selector statement in an advanced event selector.
|
|
3393
3388
|
|
|
3394
|
-
:param field: A field in a CloudTrail event record on which to filter events to be logged. For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the field is used only for selecting events as filtering is not supported. For CloudTrail management events, supported fields include ``eventCategory`` (required), ``eventSource`` , and ``readOnly`` . The following additional fields are available for event data stores: ``eventName`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail data events, supported fields include ``eventCategory`` (required), ``resources.type`` (required), ``eventName`` , ``readOnly`` , and ``resources.ARN`` . The following additional fields are available for event data stores: ``eventSource`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail network activity events, supported fields include ``eventCategory`` (required), ``eventSource`` (required), ``eventName`` , ``errorCode`` , and ``vpcEndpointId`` . For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the only supported field is ``eventCategory`` . .. epigraph:: Selectors don't support the use of wildcards like ``*`` . To match multiple values with a single condition, you may use ``StartsWith`` , ``EndsWith`` , ``NotStartsWith`` , or ``NotEndsWith`` to explicitly match the beginning or end of the event field. - *``readOnly``* - This is an optional field that is only used for management events and data events. This field can be set to ``Equals`` with a value of ``true`` or ``false`` . If you do not add this field, CloudTrail logs both ``read`` and ``write`` events. A value of ``true`` logs only ``read`` events. A value of ``false`` logs only ``write`` events. - *``eventSource``* - This field is only used for management events, data events (for event data stores only), and network activity events. For management events for trails, this is an optional field that can be set to ``NotEquals`` ``kms.amazonaws.com`` to exclude KMS management events, or ``NotEquals`` ``rdsdata.amazonaws.com`` to exclude RDS management events. For management and data events for event data stores, you can use it to include or exclude any event source and can use any operator. For network activity events, this is a required field that only uses the ``Equals`` operator. Set this field to the event source for which you want to log network activity events. If you want to log network activity events for multiple event sources, you must create a separate field selector for each event source. The following are valid values for network activity events: - ``cloudtrail.amazonaws.com`` - ``ec2.amazonaws.com`` - ``kms.amazonaws.com`` - ``secretsmanager.amazonaws.com`` - *``eventName``* - This is an optional field that is only used for data events, management events (for event data stores only), and network activity events. You can use any operator with ``eventName`` . You can use it to filter in or filter out specific events. You can have multiple values for this field, separated by commas. - *``eventCategory``* - This field is required and must be set to ``Equals`` . - For CloudTrail management events, the value must be ``Management`` . - For CloudTrail data events, the value must be ``Data`` . - For CloudTrail network activity events, the value must be ``NetworkActivity`` . The following are used only for event data stores: - For CloudTrail Insights events, the value must be ``Insight`` . - For AWS Config configuration items, the value must be ``ConfigurationItem`` . - For Audit Manager evidence, the value must be ``Evidence`` . - For events outside of AWS , the value must be ``ActivityAuditLog`` . - *``eventType``* - This is an optional field available only for event data stores, which is used to filter management and data events on the event type. For information about available event types, see `CloudTrail record contents <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html#ct-event-type>`_ in the *AWS CloudTrail user guide* . - *``errorCode``* - This field is only used to filter CloudTrail network activity events and is optional. This is the error code to filter on. Currently, the only valid ``errorCode`` is ``VpceAccessDenied`` . ``errorCode`` can only use the ``Equals`` operator. - *``sessionCredentialFromConsole``* - This is an optional field available only for event data stores, which is used to filter management and data events based on whether the events originated from an AWS Management Console session. ``sessionCredentialFromConsole`` can only use the ``Equals`` and ``NotEquals`` operators. - *``resources.type``* - This field is required for CloudTrail data events. ``resources.type`` can only use the ``Equals`` operator. For a list of available resource types for data events, see `Data events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#logging-data-events>`_ in the *AWS CloudTrail User Guide* . You can have only one ``resources.type`` field per selector. To log events on more than one resource type, add another selector. - *``resources.ARN``* - The ``resources.ARN`` is an optional field for data events. You can use any operator with ``resources.ARN`` , but if you use ``Equals`` or ``NotEquals`` , the value must exactly match the ARN of a valid resource of the type you've specified in the template as the value of resources.type. To log all data events for all objects in a specific S3 bucket, use the ``StartsWith`` operator, and include only the bucket ARN as the matching value. For information about filtering data events on the ``resources.ARN`` field, see `Filtering data events by resources.ARN <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn>`_ in the *AWS CloudTrail User Guide* . .. epigraph:: You can't use the ``resources.ARN`` field to filter resource types that do not have ARNs. - *``userIdentity.arn``* - This is an optional field available only for event data stores, which is used to filter management and data events on the userIdentity ARN. You can use any operator with ``userIdentity.arn`` . For more information on the userIdentity element, see `CloudTrail userIdentity element <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html>`_ in the *AWS CloudTrail User Guide* . - *``vpcEndpointId``* - This field is only used to filter CloudTrail network activity events and is optional. This field identifies the VPC endpoint that the request passed through. You can use any operator with ``vpcEndpointId`` .
|
|
3389
|
+
:param field: A field in a CloudTrail event record on which to filter events to be logged. For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the field is used only for selecting events as filtering is not supported. For CloudTrail management events, supported fields include ``eventCategory`` (required), ``eventSource`` , and ``readOnly`` . The following additional fields are available for event data stores: ``eventName`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail data events, supported fields include ``eventCategory`` (required), ``resources.type`` (required), ``eventName`` , ``readOnly`` , and ``resources.ARN`` . The following additional fields are available for event data stores: ``eventSource`` , ``eventType`` , ``sessionCredentialFromConsole`` , and ``userIdentity.arn`` . For CloudTrail network activity events, supported fields include ``eventCategory`` (required), ``eventSource`` (required), ``eventName`` , ``errorCode`` , and ``vpcEndpointId`` . For event data stores for CloudTrail Insights events, AWS Config configuration items, Audit Manager evidence, or events outside of AWS , the only supported field is ``eventCategory`` . .. epigraph:: Selectors don't support the use of wildcards like ``*`` . To match multiple values with a single condition, you may use ``StartsWith`` , ``EndsWith`` , ``NotStartsWith`` , or ``NotEndsWith`` to explicitly match the beginning or end of the event field. - *``readOnly``* - This is an optional field that is only used for management events and data events. This field can be set to ``Equals`` with a value of ``true`` or ``false`` . If you do not add this field, CloudTrail logs both ``read`` and ``write`` events. A value of ``true`` logs only ``read`` events. A value of ``false`` logs only ``write`` events. - *``eventSource``* - This field is only used for management events, data events (for event data stores only), and network activity events. For management events for trails, this is an optional field that can be set to ``NotEquals`` ``kms.amazonaws.com`` to exclude KMS management events, or ``NotEquals`` ``rdsdata.amazonaws.com`` to exclude RDS management events. For management and data events for event data stores, you can use it to include or exclude any event source and can use any operator. For network activity events, this is a required field that only uses the ``Equals`` operator. Set this field to the event source for which you want to log network activity events. If you want to log network activity events for multiple event sources, you must create a separate field selector for each event source. The following are valid values for network activity events: - ``cloudtrail.amazonaws.com`` - ``ec2.amazonaws.com`` - ``kms.amazonaws.com`` - ``s3.amazonaws.com`` - ``secretsmanager.amazonaws.com`` - *``eventName``* - This is an optional field that is only used for data events, management events (for event data stores only), and network activity events. You can use any operator with ``eventName`` . You can use it to filter in or filter out specific events. You can have multiple values for this field, separated by commas. - *``eventCategory``* - This field is required and must be set to ``Equals`` . - For CloudTrail management events, the value must be ``Management`` . - For CloudTrail data events, the value must be ``Data`` . - For CloudTrail network activity events, the value must be ``NetworkActivity`` . The following are used only for event data stores: - For CloudTrail Insights events, the value must be ``Insight`` . - For AWS Config configuration items, the value must be ``ConfigurationItem`` . - For Audit Manager evidence, the value must be ``Evidence`` . - For events outside of AWS , the value must be ``ActivityAuditLog`` . - *``eventType``* - This is an optional field available only for event data stores, which is used to filter management and data events on the event type. For information about available event types, see `CloudTrail record contents <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html#ct-event-type>`_ in the *AWS CloudTrail user guide* . - *``errorCode``* - This field is only used to filter CloudTrail network activity events and is optional. This is the error code to filter on. Currently, the only valid ``errorCode`` is ``VpceAccessDenied`` . ``errorCode`` can only use the ``Equals`` operator. - *``sessionCredentialFromConsole``* - This is an optional field available only for event data stores, which is used to filter management and data events based on whether the events originated from an AWS Management Console session. ``sessionCredentialFromConsole`` can only use the ``Equals`` and ``NotEquals`` operators. - *``resources.type``* - This field is required for CloudTrail data events. ``resources.type`` can only use the ``Equals`` operator. For a list of available resource types for data events, see `Data events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#logging-data-events>`_ in the *AWS CloudTrail User Guide* . You can have only one ``resources.type`` field per selector. To log events on more than one resource type, add another selector. - *``resources.ARN``* - The ``resources.ARN`` is an optional field for data events. You can use any operator with ``resources.ARN`` , but if you use ``Equals`` or ``NotEquals`` , the value must exactly match the ARN of a valid resource of the type you've specified in the template as the value of resources.type. To log all data events for all objects in a specific S3 bucket, use the ``StartsWith`` operator, and include only the bucket ARN as the matching value. For information about filtering data events on the ``resources.ARN`` field, see `Filtering data events by resources.ARN <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn>`_ in the *AWS CloudTrail User Guide* . .. epigraph:: You can't use the ``resources.ARN`` field to filter resource types that do not have ARNs. - *``userIdentity.arn``* - This is an optional field available only for event data stores, which is used to filter management and data events on the userIdentity ARN. You can use any operator with ``userIdentity.arn`` . For more information on the userIdentity element, see `CloudTrail userIdentity element <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html>`_ in the *AWS CloudTrail User Guide* . - *``vpcEndpointId``* - This field is only used to filter CloudTrail network activity events and is optional. This field identifies the VPC endpoint that the request passed through. You can use any operator with ``vpcEndpointId`` .
|
|
3395
3390
|
:param ends_with: An operator that includes events that match the last few characters of the event record field specified as the value of ``Field`` .
|
|
3396
3391
|
:param equal_to: An operator that includes events that match the exact value of the event record field specified as the value of ``Field`` . This is the only valid operator that you can use with the ``readOnly`` , ``eventCategory`` , and ``resources.type`` fields.
|
|
3397
3392
|
:param not_ends_with: An operator that excludes events that match the last few characters of the event record field specified as the value of ``Field`` .
|
|
@@ -3476,6 +3471,7 @@ class CfnTrail(
|
|
|
3476
3471
|
- ``cloudtrail.amazonaws.com``
|
|
3477
3472
|
- ``ec2.amazonaws.com``
|
|
3478
3473
|
- ``kms.amazonaws.com``
|
|
3474
|
+
- ``s3.amazonaws.com``
|
|
3479
3475
|
- ``secretsmanager.amazonaws.com``
|
|
3480
3476
|
- *``eventName``* - This is an optional field that is only used for data events, management events (for event data stores only), and network activity events. You can use any operator with ``eventName`` . You can use it to filter in or filter out specific events. You can have multiple values for this field, separated by commas.
|
|
3481
3477
|
- *``eventCategory``* - This field is required and must be set to ``Equals`` .
|
|
@@ -1873,7 +1873,7 @@ class CfnAlarm(
|
|
|
1873
1873
|
def __init__(self, *, name: builtins.str, value: builtins.str) -> None:
|
|
1874
1874
|
'''Dimension is an embedded property of the ``AWS::CloudWatch::Alarm`` type.
|
|
1875
1875
|
|
|
1876
|
-
Dimensions are name/value pairs that can be associated with a CloudWatch metric. You can specify a maximum of
|
|
1876
|
+
Dimensions are name/value pairs that can be associated with a CloudWatch metric. You can specify a maximum of 30 dimensions for a given metric.
|
|
1877
1877
|
|
|
1878
1878
|
:param name: The name of the dimension, from 1–255 characters in length. This dimension name must have been included when the metric was published.
|
|
1879
1879
|
:param value: The value for the dimension, from 1–255 characters in length.
|
|
@@ -497,6 +497,29 @@ codebuild.Project(self, "Project",
|
|
|
497
497
|
)
|
|
498
498
|
```
|
|
499
499
|
|
|
500
|
+
### Attribute-based compute
|
|
501
|
+
|
|
502
|
+
You can use [attribute-based compute](https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html#fleets.attribute-compute) for your fleet by setting the `computeType` to `ATTRIBUTE_BASED`.
|
|
503
|
+
This allows you to specify the attributes in `computeConfiguration` such as vCPUs, memory, disk space, and the machineType.
|
|
504
|
+
After specifying some or all of the available attributes, CodeBuild will select the cheapest compute type from available instance types as that at least matches all given criteria.
|
|
505
|
+
|
|
506
|
+
```python
|
|
507
|
+
from aws_cdk import Size
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
fleet = codebuild.Fleet(self, "MyFleet",
|
|
511
|
+
base_capacity=1,
|
|
512
|
+
compute_type=codebuild.FleetComputeType.ATTRIBUTE_BASED,
|
|
513
|
+
environment_type=codebuild.EnvironmentType.LINUX_CONTAINER,
|
|
514
|
+
compute_configuration=codebuild.ComputeConfiguration(
|
|
515
|
+
v_cpu=2,
|
|
516
|
+
memory=Size.gibibytes(4),
|
|
517
|
+
disk=Size.gibibytes(10),
|
|
518
|
+
machine_type=codebuild.MachineType.GENERAL
|
|
519
|
+
)
|
|
520
|
+
)
|
|
521
|
+
```
|
|
522
|
+
|
|
500
523
|
## Logs
|
|
501
524
|
|
|
502
525
|
CodeBuild lets you specify an S3 Bucket, CloudWatch Log Group or both to receive logs from your projects.
|
|
@@ -1049,6 +1072,7 @@ from .. import (
|
|
|
1049
1072
|
RemovalPolicy as _RemovalPolicy_9f93c814,
|
|
1050
1073
|
Resource as _Resource_45bc6135,
|
|
1051
1074
|
SecretValue as _SecretValue_3dd0ddae,
|
|
1075
|
+
Size as _Size_7b441c34,
|
|
1052
1076
|
SymlinkFollowMode as _SymlinkFollowMode_047ec1f6,
|
|
1053
1077
|
TagManager as _TagManager_0a598cb3,
|
|
1054
1078
|
TreeInspector as _TreeInspector_488e0dd5,
|
|
@@ -6460,7 +6484,7 @@ class CfnProject(
|
|
|
6460
6484
|
The Webhook feature isn't available in AWS CloudFormation for GitHub Enterprise projects. Use the AWS CLI or AWS CodeBuild console to create the webhook.
|
|
6461
6485
|
|
|
6462
6486
|
:param pattern: For a ``WebHookFilter`` that uses ``EVENT`` type, a comma-separated string that specifies one or more events. For example, the webhook filter ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` allows all push, pull request created, and pull request updated events to trigger a build. For a ``WebHookFilter`` that uses any of the other filter types, a regular expression pattern. For example, a ``WebHookFilter`` that uses ``HEAD_REF`` for its ``type`` and the pattern ``^refs/heads/`` triggers a build when the head reference is a branch with a reference name ``refs/heads/branch-name`` .
|
|
6463
|
-
:param type: The type of webhook filter. There are nine webhook filter types: ``EVENT`` , ``ACTOR_ACCOUNT_ID`` , ``HEAD_REF`` , ``BASE_REF`` , ``FILE_PATH`` , ``COMMIT_MESSAGE`` , ``TAG_NAME`` , ``RELEASE_NAME`` , and ``WORKFLOW_NAME`` . - EVENT - A webhook event triggers a build when the provided ``pattern`` matches one of nine event types: ``PUSH`` , ``PULL_REQUEST_CREATED`` , ``PULL_REQUEST_UPDATED`` , ``PULL_REQUEST_CLOSED`` , ``PULL_REQUEST_REOPENED`` , ``PULL_REQUEST_MERGED`` , ``RELEASED`` , ``PRERELEASED`` , and ``WORKFLOW_JOB_QUEUED`` . The ``EVENT`` patterns are specified as a comma-separated string. For example, ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` filters all push, pull request created, and pull request updated events. .. epigraph:: Types ``PULL_REQUEST_REOPENED`` and ``WORKFLOW_JOB_QUEUED`` work with GitHub and GitHub Enterprise only. Types ``RELEASED`` and ``PRERELEASED`` work with GitHub only. - ACTOR_ACCOUNT_ID - A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression ``pattern`` . - HEAD_REF - A webhook event triggers a build when the head reference matches the regular expression ``pattern`` . For example, ``refs/heads/branch-name`` and ``refs/tags/tag-name`` . .. epigraph:: Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events. - BASE_REF - A webhook event triggers a build when the base reference matches the regular expression ``pattern`` . For example, ``refs/heads/branch-name`` . .. epigraph:: Works with pull request events only. - FILE_PATH - A webhook triggers a build when the path of a changed file matches the regular expression ``pattern`` . .. epigraph:: Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. - COMMIT_MESSAGE - A webhook triggers a build when the head commit message matches the regular expression ``pattern`` . .. epigraph:: Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. - TAG_NAME - A webhook triggers a build when the tag name of the release matches the regular expression ``pattern`` . .. epigraph:: Works with ``RELEASED`` and ``PRERELEASED`` events only. - RELEASE_NAME - A webhook triggers a build when the release name matches the regular expression ``pattern`` . .. epigraph:: Works with ``RELEASED`` and ``PRERELEASED`` events only. - REPOSITORY_NAME - A webhook triggers a build when the repository name matches the regular expression pattern. .. epigraph:: Works with GitHub global or organization webhooks only. - WORKFLOW_NAME - A webhook triggers a build when the workflow name matches the regular expression ``pattern`` . .. epigraph:: Works with ``WORKFLOW_JOB_QUEUED`` events only.
|
|
6487
|
+
:param type: The type of webhook filter. There are nine webhook filter types: ``EVENT`` , ``ACTOR_ACCOUNT_ID`` , ``HEAD_REF`` , ``BASE_REF`` , ``FILE_PATH`` , ``COMMIT_MESSAGE`` , ``TAG_NAME`` , ``RELEASE_NAME`` , and ``WORKFLOW_NAME`` . - EVENT - A webhook event triggers a build when the provided ``pattern`` matches one of nine event types: ``PUSH`` , ``PULL_REQUEST_CREATED`` , ``PULL_REQUEST_UPDATED`` , ``PULL_REQUEST_CLOSED`` , ``PULL_REQUEST_REOPENED`` , ``PULL_REQUEST_MERGED`` , ``RELEASED`` , ``PRERELEASED`` , and ``WORKFLOW_JOB_QUEUED`` . The ``EVENT`` patterns are specified as a comma-separated string. For example, ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` filters all push, pull request created, and pull request updated events. .. epigraph:: Types ``PULL_REQUEST_REOPENED`` and ``WORKFLOW_JOB_QUEUED`` work with GitHub and GitHub Enterprise only. Types ``RELEASED`` and ``PRERELEASED`` work with GitHub only. - ACTOR_ACCOUNT_ID - A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression ``pattern`` . - HEAD_REF - A webhook event triggers a build when the head reference matches the regular expression ``pattern`` . For example, ``refs/heads/branch-name`` and ``refs/tags/tag-name`` . .. epigraph:: Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events. - BASE_REF - A webhook event triggers a build when the base reference matches the regular expression ``pattern`` . For example, ``refs/heads/branch-name`` . .. epigraph:: Works with pull request events only. - FILE_PATH - A webhook triggers a build when the path of a changed file matches the regular expression ``pattern`` . .. epigraph:: Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. - COMMIT_MESSAGE - A webhook triggers a build when the head commit message matches the regular expression ``pattern`` . .. epigraph:: Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. - TAG_NAME - A webhook triggers a build when the tag name of the release matches the regular expression ``pattern`` . .. epigraph:: Works with ``RELEASED`` and ``PRERELEASED`` events only. - RELEASE_NAME - A webhook triggers a build when the release name matches the regular expression ``pattern`` . .. epigraph:: Works with ``RELEASED`` and ``PRERELEASED`` events only. - REPOSITORY_NAME - A webhook triggers a build when the repository name matches the regular expression pattern. .. epigraph:: Works with GitHub global or organization webhooks only. - WORKFLOW_NAME - A webhook triggers a build when the workflow name matches the regular expression ``pattern`` . .. epigraph:: Works with ``WORKFLOW_JOB_QUEUED`` events only. > For CodeBuild-hosted Buildkite runner builds, WORKFLOW_NAME filters will filter by pipeline name.
|
|
6464
6488
|
:param exclude_matched_pattern: Used to indicate that the ``pattern`` determines which webhook events do not trigger a build. If true, then a webhook event that does not match the ``pattern`` triggers a build. If false, then a webhook event that matches the ``pattern`` triggers a build.
|
|
6465
6489
|
|
|
6466
6490
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html
|
|
@@ -6575,7 +6599,7 @@ class CfnProject(
|
|
|
6575
6599
|
|
|
6576
6600
|
.. epigraph::
|
|
6577
6601
|
|
|
6578
|
-
Works with ``WORKFLOW_JOB_QUEUED`` events only.
|
|
6602
|
+
Works with ``WORKFLOW_JOB_QUEUED`` events only. > For CodeBuild-hosted Buildkite runner builds, WORKFLOW_NAME filters will filter by pipeline name.
|
|
6579
6603
|
|
|
6580
6604
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html#cfn-codebuild-project-webhookfilter-type
|
|
6581
6605
|
'''
|
|
@@ -8799,6 +8823,122 @@ class CommonProjectProps:
|
|
|
8799
8823
|
)
|
|
8800
8824
|
|
|
8801
8825
|
|
|
8826
|
+
@jsii.data_type(
|
|
8827
|
+
jsii_type="aws-cdk-lib.aws_codebuild.ComputeConfiguration",
|
|
8828
|
+
jsii_struct_bases=[],
|
|
8829
|
+
name_mapping={
|
|
8830
|
+
"disk": "disk",
|
|
8831
|
+
"machine_type": "machineType",
|
|
8832
|
+
"memory": "memory",
|
|
8833
|
+
"v_cpu": "vCpu",
|
|
8834
|
+
},
|
|
8835
|
+
)
|
|
8836
|
+
class ComputeConfiguration:
|
|
8837
|
+
def __init__(
|
|
8838
|
+
self,
|
|
8839
|
+
*,
|
|
8840
|
+
disk: typing.Optional[_Size_7b441c34] = None,
|
|
8841
|
+
machine_type: typing.Optional["MachineType"] = None,
|
|
8842
|
+
memory: typing.Optional[_Size_7b441c34] = None,
|
|
8843
|
+
v_cpu: typing.Optional[jsii.Number] = None,
|
|
8844
|
+
) -> None:
|
|
8845
|
+
'''The compute configuration for the fleet.
|
|
8846
|
+
|
|
8847
|
+
Despite what the CloudFormation schema says, the numeric properties (disk, memory, vCpu) are not optional.
|
|
8848
|
+
An ``undefined`` value will cause the CloudFormation deployment to fail, e.g.
|
|
8849
|
+
.. epigraph::
|
|
8850
|
+
|
|
8851
|
+
Cannot invoke "java.lang.Integer.intValue()" because the return value of "software.amazon.codebuild.fleet.ComputeConfiguration.getMemory()" is null
|
|
8852
|
+
Therefore, these properties default value is set to 0.
|
|
8853
|
+
|
|
8854
|
+
:param disk: The amount of disk space of the instance type included in your fleet. Default: - No requirement, the actual value will be based on the other selected configuration properties
|
|
8855
|
+
:param machine_type: The machine type of the instance type included in your fleet. Default: - No requirement, the actual value will be based on the other selected configuration properties
|
|
8856
|
+
:param memory: The amount of memory of the instance type included in your fleet. Default: - No requirement, the actual value will be based on the other selected configuration properties
|
|
8857
|
+
:param v_cpu: The number of vCPUs of the instance type included in your fleet. Default: - No requirement, the actual value will be based on the other selected configuration properties
|
|
8858
|
+
|
|
8859
|
+
:exampleMetadata: infused
|
|
8860
|
+
|
|
8861
|
+
Example::
|
|
8862
|
+
|
|
8863
|
+
from aws_cdk import Size
|
|
8864
|
+
|
|
8865
|
+
|
|
8866
|
+
fleet = codebuild.Fleet(self, "MyFleet",
|
|
8867
|
+
base_capacity=1,
|
|
8868
|
+
compute_type=codebuild.FleetComputeType.ATTRIBUTE_BASED,
|
|
8869
|
+
environment_type=codebuild.EnvironmentType.LINUX_CONTAINER,
|
|
8870
|
+
compute_configuration=codebuild.ComputeConfiguration(
|
|
8871
|
+
v_cpu=2,
|
|
8872
|
+
memory=Size.gibibytes(4),
|
|
8873
|
+
disk=Size.gibibytes(10),
|
|
8874
|
+
machine_type=codebuild.MachineType.GENERAL
|
|
8875
|
+
)
|
|
8876
|
+
)
|
|
8877
|
+
'''
|
|
8878
|
+
if __debug__:
|
|
8879
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b104977b55c72c0577553444ac08838cdefde5acef91d6c00ad996d1c464b61b)
|
|
8880
|
+
check_type(argname="argument disk", value=disk, expected_type=type_hints["disk"])
|
|
8881
|
+
check_type(argname="argument machine_type", value=machine_type, expected_type=type_hints["machine_type"])
|
|
8882
|
+
check_type(argname="argument memory", value=memory, expected_type=type_hints["memory"])
|
|
8883
|
+
check_type(argname="argument v_cpu", value=v_cpu, expected_type=type_hints["v_cpu"])
|
|
8884
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
8885
|
+
if disk is not None:
|
|
8886
|
+
self._values["disk"] = disk
|
|
8887
|
+
if machine_type is not None:
|
|
8888
|
+
self._values["machine_type"] = machine_type
|
|
8889
|
+
if memory is not None:
|
|
8890
|
+
self._values["memory"] = memory
|
|
8891
|
+
if v_cpu is not None:
|
|
8892
|
+
self._values["v_cpu"] = v_cpu
|
|
8893
|
+
|
|
8894
|
+
@builtins.property
|
|
8895
|
+
def disk(self) -> typing.Optional[_Size_7b441c34]:
|
|
8896
|
+
'''The amount of disk space of the instance type included in your fleet.
|
|
8897
|
+
|
|
8898
|
+
:default: - No requirement, the actual value will be based on the other selected configuration properties
|
|
8899
|
+
'''
|
|
8900
|
+
result = self._values.get("disk")
|
|
8901
|
+
return typing.cast(typing.Optional[_Size_7b441c34], result)
|
|
8902
|
+
|
|
8903
|
+
@builtins.property
|
|
8904
|
+
def machine_type(self) -> typing.Optional["MachineType"]:
|
|
8905
|
+
'''The machine type of the instance type included in your fleet.
|
|
8906
|
+
|
|
8907
|
+
:default: - No requirement, the actual value will be based on the other selected configuration properties
|
|
8908
|
+
'''
|
|
8909
|
+
result = self._values.get("machine_type")
|
|
8910
|
+
return typing.cast(typing.Optional["MachineType"], result)
|
|
8911
|
+
|
|
8912
|
+
@builtins.property
|
|
8913
|
+
def memory(self) -> typing.Optional[_Size_7b441c34]:
|
|
8914
|
+
'''The amount of memory of the instance type included in your fleet.
|
|
8915
|
+
|
|
8916
|
+
:default: - No requirement, the actual value will be based on the other selected configuration properties
|
|
8917
|
+
'''
|
|
8918
|
+
result = self._values.get("memory")
|
|
8919
|
+
return typing.cast(typing.Optional[_Size_7b441c34], result)
|
|
8920
|
+
|
|
8921
|
+
@builtins.property
|
|
8922
|
+
def v_cpu(self) -> typing.Optional[jsii.Number]:
|
|
8923
|
+
'''The number of vCPUs of the instance type included in your fleet.
|
|
8924
|
+
|
|
8925
|
+
:default: - No requirement, the actual value will be based on the other selected configuration properties
|
|
8926
|
+
'''
|
|
8927
|
+
result = self._values.get("v_cpu")
|
|
8928
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
8929
|
+
|
|
8930
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
8931
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
8932
|
+
|
|
8933
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
8934
|
+
return not (rhs == self)
|
|
8935
|
+
|
|
8936
|
+
def __repr__(self) -> str:
|
|
8937
|
+
return "ComputeConfiguration(%s)" % ", ".join(
|
|
8938
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
8939
|
+
)
|
|
8940
|
+
|
|
8941
|
+
|
|
8802
8942
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_codebuild.ComputeType")
|
|
8803
8943
|
class ComputeType(enum.Enum):
|
|
8804
8944
|
'''Build machine compute type.
|
|
@@ -8868,6 +9008,7 @@ class ComputeType(enum.Enum):
|
|
|
8868
9008
|
LAMBDA_4GB = "LAMBDA_4GB"
|
|
8869
9009
|
LAMBDA_8GB = "LAMBDA_8GB"
|
|
8870
9010
|
LAMBDA_10GB = "LAMBDA_10GB"
|
|
9011
|
+
ATTRIBUTE_BASED = "ATTRIBUTE_BASED"
|
|
8871
9012
|
|
|
8872
9013
|
|
|
8873
9014
|
@jsii.data_type(
|
|
@@ -9559,6 +9700,13 @@ class FleetComputeType(enum.Enum):
|
|
|
9559
9700
|
{@link https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types docs}
|
|
9560
9701
|
for more information.
|
|
9561
9702
|
'''
|
|
9703
|
+
ATTRIBUTE_BASED = "ATTRIBUTE_BASED"
|
|
9704
|
+
'''Specify the amount of vCPUs, memory, disk space, and the type of machine.
|
|
9705
|
+
|
|
9706
|
+
AWS CodeBuild will select the cheapest instance that satisfies your specified attributes from ``computeConfiguration``.
|
|
9707
|
+
|
|
9708
|
+
:see: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types
|
|
9709
|
+
'''
|
|
9562
9710
|
|
|
9563
9711
|
|
|
9564
9712
|
@jsii.data_type(
|
|
@@ -9568,6 +9716,7 @@ class FleetComputeType(enum.Enum):
|
|
|
9568
9716
|
"base_capacity": "baseCapacity",
|
|
9569
9717
|
"compute_type": "computeType",
|
|
9570
9718
|
"environment_type": "environmentType",
|
|
9719
|
+
"compute_configuration": "computeConfiguration",
|
|
9571
9720
|
"fleet_name": "fleetName",
|
|
9572
9721
|
},
|
|
9573
9722
|
)
|
|
@@ -9578,6 +9727,7 @@ class FleetProps:
|
|
|
9578
9727
|
base_capacity: jsii.Number,
|
|
9579
9728
|
compute_type: FleetComputeType,
|
|
9580
9729
|
environment_type: EnvironmentType,
|
|
9730
|
+
compute_configuration: typing.Optional[typing.Union[ComputeConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
9581
9731
|
fleet_name: typing.Optional[builtins.str] = None,
|
|
9582
9732
|
) -> None:
|
|
9583
9733
|
'''Construction properties of a CodeBuild {@link Fleet}.
|
|
@@ -9585,6 +9735,7 @@ class FleetProps:
|
|
|
9585
9735
|
:param base_capacity: The number of machines allocated to the compute fleet. Defines the number of builds that can run in parallel. Minimum value of 1.
|
|
9586
9736
|
:param compute_type: The instance type of the compute fleet.
|
|
9587
9737
|
:param environment_type: The build environment (operating system/architecture/accelerator) type made available to projects using this fleet.
|
|
9738
|
+
:param compute_configuration: The compute configuration of the compute fleet. This is only required if ``computeType`` is set to ATTRIBUTE_BASED. Default: - do not specify compute configuration
|
|
9588
9739
|
:param fleet_name: The name of the Fleet. Default: - CloudFormation generated name
|
|
9589
9740
|
|
|
9590
9741
|
:exampleMetadata: infused
|
|
@@ -9604,17 +9755,22 @@ class FleetProps:
|
|
|
9604
9755
|
)
|
|
9605
9756
|
)
|
|
9606
9757
|
'''
|
|
9758
|
+
if isinstance(compute_configuration, dict):
|
|
9759
|
+
compute_configuration = ComputeConfiguration(**compute_configuration)
|
|
9607
9760
|
if __debug__:
|
|
9608
9761
|
type_hints = typing.get_type_hints(_typecheckingstub__e7911aefc20674030e6eb6a13611d08046f9412fc45f97ff43a4ecf7591a2d5d)
|
|
9609
9762
|
check_type(argname="argument base_capacity", value=base_capacity, expected_type=type_hints["base_capacity"])
|
|
9610
9763
|
check_type(argname="argument compute_type", value=compute_type, expected_type=type_hints["compute_type"])
|
|
9611
9764
|
check_type(argname="argument environment_type", value=environment_type, expected_type=type_hints["environment_type"])
|
|
9765
|
+
check_type(argname="argument compute_configuration", value=compute_configuration, expected_type=type_hints["compute_configuration"])
|
|
9612
9766
|
check_type(argname="argument fleet_name", value=fleet_name, expected_type=type_hints["fleet_name"])
|
|
9613
9767
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
9614
9768
|
"base_capacity": base_capacity,
|
|
9615
9769
|
"compute_type": compute_type,
|
|
9616
9770
|
"environment_type": environment_type,
|
|
9617
9771
|
}
|
|
9772
|
+
if compute_configuration is not None:
|
|
9773
|
+
self._values["compute_configuration"] = compute_configuration
|
|
9618
9774
|
if fleet_name is not None:
|
|
9619
9775
|
self._values["fleet_name"] = fleet_name
|
|
9620
9776
|
|
|
@@ -9645,6 +9801,19 @@ class FleetProps:
|
|
|
9645
9801
|
assert result is not None, "Required property 'environment_type' is missing"
|
|
9646
9802
|
return typing.cast(EnvironmentType, result)
|
|
9647
9803
|
|
|
9804
|
+
@builtins.property
|
|
9805
|
+
def compute_configuration(self) -> typing.Optional[ComputeConfiguration]:
|
|
9806
|
+
'''The compute configuration of the compute fleet.
|
|
9807
|
+
|
|
9808
|
+
This is only required if ``computeType`` is set to ATTRIBUTE_BASED.
|
|
9809
|
+
|
|
9810
|
+
:default: - do not specify compute configuration
|
|
9811
|
+
|
|
9812
|
+
:see: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types
|
|
9813
|
+
'''
|
|
9814
|
+
result = self._values.get("compute_configuration")
|
|
9815
|
+
return typing.cast(typing.Optional[ComputeConfiguration], result)
|
|
9816
|
+
|
|
9648
9817
|
@builtins.property
|
|
9649
9818
|
def fleet_name(self) -> typing.Optional[builtins.str]:
|
|
9650
9819
|
'''The name of the Fleet.
|
|
@@ -12862,6 +13031,36 @@ class MacBuildImage(
|
|
|
12862
13031
|
return typing.cast(typing.Optional[_ISecret_6e020e6a], jsii.get(self, "secretsManagerCredentials"))
|
|
12863
13032
|
|
|
12864
13033
|
|
|
13034
|
+
@jsii.enum(jsii_type="aws-cdk-lib.aws_codebuild.MachineType")
|
|
13035
|
+
class MachineType(enum.Enum):
|
|
13036
|
+
'''The compute type of the fleet.
|
|
13037
|
+
|
|
13038
|
+
:exampleMetadata: infused
|
|
13039
|
+
|
|
13040
|
+
Example::
|
|
13041
|
+
|
|
13042
|
+
from aws_cdk import Size
|
|
13043
|
+
|
|
13044
|
+
|
|
13045
|
+
fleet = codebuild.Fleet(self, "MyFleet",
|
|
13046
|
+
base_capacity=1,
|
|
13047
|
+
compute_type=codebuild.FleetComputeType.ATTRIBUTE_BASED,
|
|
13048
|
+
environment_type=codebuild.EnvironmentType.LINUX_CONTAINER,
|
|
13049
|
+
compute_configuration=codebuild.ComputeConfiguration(
|
|
13050
|
+
v_cpu=2,
|
|
13051
|
+
memory=Size.gibibytes(4),
|
|
13052
|
+
disk=Size.gibibytes(10),
|
|
13053
|
+
machine_type=codebuild.MachineType.GENERAL
|
|
13054
|
+
)
|
|
13055
|
+
)
|
|
13056
|
+
'''
|
|
13057
|
+
|
|
13058
|
+
GENERAL = "GENERAL"
|
|
13059
|
+
'''General purpose compute type.'''
|
|
13060
|
+
NVME = "NVME"
|
|
13061
|
+
'''Non-Volatile Memory Express (NVMe) storage optimized compute type.'''
|
|
13062
|
+
|
|
13063
|
+
|
|
12865
13064
|
class PhaseChangeEvent(
|
|
12866
13065
|
metaclass=jsii.JSIIMeta,
|
|
12867
13066
|
jsii_type="aws-cdk-lib.aws_codebuild.PhaseChangeEvent",
|
|
@@ -17049,6 +17248,7 @@ class Fleet(
|
|
|
17049
17248
|
base_capacity: jsii.Number,
|
|
17050
17249
|
compute_type: FleetComputeType,
|
|
17051
17250
|
environment_type: EnvironmentType,
|
|
17251
|
+
compute_configuration: typing.Optional[typing.Union[ComputeConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
17052
17252
|
fleet_name: typing.Optional[builtins.str] = None,
|
|
17053
17253
|
) -> None:
|
|
17054
17254
|
'''
|
|
@@ -17057,6 +17257,7 @@ class Fleet(
|
|
|
17057
17257
|
:param base_capacity: The number of machines allocated to the compute fleet. Defines the number of builds that can run in parallel. Minimum value of 1.
|
|
17058
17258
|
:param compute_type: The instance type of the compute fleet.
|
|
17059
17259
|
:param environment_type: The build environment (operating system/architecture/accelerator) type made available to projects using this fleet.
|
|
17260
|
+
:param compute_configuration: The compute configuration of the compute fleet. This is only required if ``computeType`` is set to ATTRIBUTE_BASED. Default: - do not specify compute configuration
|
|
17060
17261
|
:param fleet_name: The name of the Fleet. Default: - CloudFormation generated name
|
|
17061
17262
|
'''
|
|
17062
17263
|
if __debug__:
|
|
@@ -17067,6 +17268,7 @@ class Fleet(
|
|
|
17067
17268
|
base_capacity=base_capacity,
|
|
17068
17269
|
compute_type=compute_type,
|
|
17069
17270
|
environment_type=environment_type,
|
|
17271
|
+
compute_configuration=compute_configuration,
|
|
17070
17272
|
fleet_name=fleet_name,
|
|
17071
17273
|
)
|
|
17072
17274
|
|
|
@@ -18222,6 +18424,7 @@ __all__ = [
|
|
|
18222
18424
|
"CloudWatchLoggingOptions",
|
|
18223
18425
|
"CodeCommitSourceProps",
|
|
18224
18426
|
"CommonProjectProps",
|
|
18427
|
+
"ComputeConfiguration",
|
|
18225
18428
|
"ComputeType",
|
|
18226
18429
|
"DockerImageOptions",
|
|
18227
18430
|
"EfsFileSystemLocationProps",
|
|
@@ -18256,6 +18459,7 @@ __all__ = [
|
|
|
18256
18459
|
"LocalCacheMode",
|
|
18257
18460
|
"LoggingOptions",
|
|
18258
18461
|
"MacBuildImage",
|
|
18462
|
+
"MachineType",
|
|
18259
18463
|
"PhaseChangeEvent",
|
|
18260
18464
|
"PipelineProject",
|
|
18261
18465
|
"PipelineProjectProps",
|
|
@@ -19191,6 +19395,16 @@ def _typecheckingstub__45bdedf6c9b38dcb0797768fa0fdec382e282ebd8679405f7dd9df6cb
|
|
|
19191
19395
|
"""Type checking stubs"""
|
|
19192
19396
|
pass
|
|
19193
19397
|
|
|
19398
|
+
def _typecheckingstub__b104977b55c72c0577553444ac08838cdefde5acef91d6c00ad996d1c464b61b(
|
|
19399
|
+
*,
|
|
19400
|
+
disk: typing.Optional[_Size_7b441c34] = None,
|
|
19401
|
+
machine_type: typing.Optional[MachineType] = None,
|
|
19402
|
+
memory: typing.Optional[_Size_7b441c34] = None,
|
|
19403
|
+
v_cpu: typing.Optional[jsii.Number] = None,
|
|
19404
|
+
) -> None:
|
|
19405
|
+
"""Type checking stubs"""
|
|
19406
|
+
pass
|
|
19407
|
+
|
|
19194
19408
|
def _typecheckingstub__a9bdff78eb0c7b03d745a4a031a5cd7fe7b54a46e7733dc247bae3735e3c5300(
|
|
19195
19409
|
*,
|
|
19196
19410
|
secrets_manager_credentials: typing.Optional[_ISecret_6e020e6a] = None,
|
|
@@ -19334,6 +19548,7 @@ def _typecheckingstub__e7911aefc20674030e6eb6a13611d08046f9412fc45f97ff43a4ecf75
|
|
|
19334
19548
|
base_capacity: jsii.Number,
|
|
19335
19549
|
compute_type: FleetComputeType,
|
|
19336
19550
|
environment_type: EnvironmentType,
|
|
19551
|
+
compute_configuration: typing.Optional[typing.Union[ComputeConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
19337
19552
|
fleet_name: typing.Optional[builtins.str] = None,
|
|
19338
19553
|
) -> None:
|
|
19339
19554
|
"""Type checking stubs"""
|
|
@@ -20157,6 +20372,7 @@ def _typecheckingstub__68e9f035c12fa2c35bc62bc8d306e3651814bea9f53875aeea43b85f6
|
|
|
20157
20372
|
base_capacity: jsii.Number,
|
|
20158
20373
|
compute_type: FleetComputeType,
|
|
20159
20374
|
environment_type: EnvironmentType,
|
|
20375
|
+
compute_configuration: typing.Optional[typing.Union[ComputeConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
20160
20376
|
fleet_name: typing.Optional[builtins.str] = None,
|
|
20161
20377
|
) -> None:
|
|
20162
20378
|
"""Type checking stubs"""
|