@pulumi/aws 7.11.0-alpha.1761834890 → 7.11.0-alpha.1762351717
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.
- package/alb/listenerRule.d.ts +45 -0
- package/alb/listenerRule.js +35 -0
- package/alb/listenerRule.js.map +1 -1
- package/amplify/app.d.ts +1 -1
- package/amplify/app.js +1 -1
- package/apigateway/integration.d.ts +1 -1
- package/apigateway/integration.js +1 -1
- package/apigateway/integrationResponse.d.ts +1 -1
- package/apigateway/integrationResponse.js +1 -1
- package/appstream/getImage.d.ts +10 -10
- package/appsync/function.d.ts +5 -5
- package/appsync/function.js +5 -5
- package/appsync/graphQLApi.d.ts +1 -1
- package/appsync/graphQLApi.js +1 -1
- package/appsync/resolver.d.ts +11 -11
- package/appsync/resolver.js +11 -11
- package/autoscaling/tag.d.ts +30 -0
- package/autoscaling/tag.js +30 -0
- package/autoscaling/tag.js.map +1 -1
- package/autoscalingplans/scalingPlan.d.ts +100 -0
- package/autoscalingplans/scalingPlan.js +100 -0
- package/autoscalingplans/scalingPlan.js.map +1 -1
- package/bcmdata/export.d.ts +9 -0
- package/bcmdata/export.js.map +1 -1
- package/bedrock/agentcoreAgentRuntimeEndpoint.d.ts +6 -0
- package/bedrock/agentcoreAgentRuntimeEndpoint.js.map +1 -1
- package/bedrock/agentcoreGateway.d.ts +6 -6
- package/bedrockmodel/invocationLoggingConfiguration.d.ts +14 -14
- package/bedrockmodel/invocationLoggingConfiguration.js +14 -14
- package/cfg/organizationCustomPolicyRule.d.ts +3 -3
- package/cfg/organizationCustomPolicyRule.js +3 -3
- package/cfg/rule.d.ts +10 -10
- package/cfg/rule.js +10 -10
- package/cloudwatch/eventTarget.d.ts +3 -3
- package/cloudwatch/eventTarget.js +3 -3
- package/cloudwatch/metricAlarm.d.ts +1 -1
- package/cloudwatch/metricAlarm.js +1 -1
- package/codebuild/webhook.d.ts +20 -0
- package/codebuild/webhook.js +20 -0
- package/codebuild/webhook.js.map +1 -1
- package/codepipeline/webhook.d.ts +77 -0
- package/codepipeline/webhook.js +77 -0
- package/codepipeline/webhook.js.map +1 -1
- package/cognito/identityPoolProviderPrincipalTag.d.ts +37 -0
- package/cognito/identityPoolProviderPrincipalTag.js +37 -0
- package/cognito/identityPoolProviderPrincipalTag.js.map +1 -1
- package/datazone/formType.d.ts +9 -9
- package/datazone/formType.js +9 -9
- package/dms/replicationConfig.d.ts +1 -1
- package/dms/replicationConfig.js +1 -1
- package/dynamodb/getTableItem.d.ts +2 -2
- package/dynamodb/getTableItem.js +2 -2
- package/dynamodb/tableItem.d.ts +5 -5
- package/dynamodb/tableItem.js +5 -5
- package/ec2/getSubnets.d.ts +110 -0
- package/ec2/getSubnets.js +110 -0
- package/ec2/getSubnets.js.map +1 -1
- package/ec2/securityGroup.d.ts +4 -4
- package/ec2/securityGroup.js +4 -4
- package/ec2/vpcIpam.d.ts +28 -0
- package/ec2/vpcIpam.js +28 -0
- package/ec2/vpcIpam.js.map +1 -1
- package/ecr/lifecyclePolicy.d.ts +20 -20
- package/ecr/lifecyclePolicy.js +20 -20
- package/ecr/repositoryCreationTemplate.d.ts +10 -10
- package/ecr/repositoryCreationTemplate.js +10 -10
- package/ecrpublic/getImages.d.ts +76 -0
- package/ecrpublic/getImages.js +34 -0
- package/ecrpublic/getImages.js.map +1 -0
- package/ecrpublic/index.d.ts +3 -0
- package/ecrpublic/index.js +4 -1
- package/ecrpublic/index.js.map +1 -1
- package/ecs/getTaskDefinition.d.ts +18 -18
- package/ecs/getTaskDefinition.js +18 -18
- package/eks/getClusters.d.ts +30 -0
- package/eks/getClusters.js +30 -0
- package/eks/getClusters.js.map +1 -1
- package/elasticsearch/domain.d.ts +17 -17
- package/elasticsearch/domain.js +17 -17
- package/elasticsearch/domainPolicy.d.ts +8 -8
- package/elasticsearch/domainPolicy.js +8 -8
- package/emr/cluster.d.ts +54 -54
- package/emr/cluster.js +36 -36
- package/emr/instanceGroup.d.ts +18 -18
- package/emr/securityConfiguration.d.ts +9 -9
- package/emr/securityConfiguration.js +9 -9
- package/emrserverless/application.d.ts +94 -1
- package/emrserverless/application.js +74 -1
- package/emrserverless/application.js.map +1 -1
- package/evidently/segment.d.ts +2 -2
- package/evidently/segment.js +2 -2
- package/glue/connection.d.ts +13 -11
- package/glue/connection.js +13 -11
- package/glue/connection.js.map +1 -1
- package/glue/crawler.d.ts +3 -3
- package/glue/crawler.js +3 -3
- package/identitystore/group.d.ts +8 -0
- package/identitystore/group.js +2 -0
- package/identitystore/group.js.map +1 -1
- package/imagebuilder/getImageRecipe.d.ts +6 -0
- package/imagebuilder/getImageRecipe.js.map +1 -1
- package/imagebuilder/imageRecipe.d.ts +18 -0
- package/imagebuilder/imageRecipe.js +2 -0
- package/imagebuilder/imageRecipe.js.map +1 -1
- package/imagebuilder/workflow.d.ts +3 -3
- package/imagebuilder/workflow.js +3 -3
- package/iot/getEndpoint.d.ts +46 -0
- package/iot/getEndpoint.js +46 -0
- package/iot/getEndpoint.js.map +1 -1
- package/kinesis/firehoseDeliveryStream.d.ts +20 -20
- package/kinesis/firehoseDeliveryStream.js +20 -20
- package/kinesis/resourcePolicy.d.ts +13 -13
- package/kinesis/resourcePolicy.js +13 -13
- package/kms/ciphertext.d.ts +2 -2
- package/kms/ciphertext.js +2 -2
- package/kms/getCipherText.d.ts +4 -4
- package/kms/getCipherText.js +4 -4
- package/lakeformation/identityCenterConfiguration.d.ts +121 -0
- package/lakeformation/identityCenterConfiguration.js +84 -0
- package/lakeformation/identityCenterConfiguration.js.map +1 -0
- package/lakeformation/index.d.ts +3 -0
- package/lakeformation/index.js +6 -1
- package/lakeformation/index.js.map +1 -1
- package/lambda/getCodeSigningConfig.d.ts +78 -0
- package/lambda/getCodeSigningConfig.js +78 -0
- package/lambda/getCodeSigningConfig.js.map +1 -1
- package/lambda/getInvocation.d.ts +100 -0
- package/lambda/getInvocation.js +100 -0
- package/lambda/getInvocation.js.map +1 -1
- package/lambda/invocation.d.ts +31 -0
- package/lambda/invocation.js +31 -0
- package/lambda/invocation.js.map +1 -1
- package/lb/getListenerRule.d.ts +12 -0
- package/lb/getListenerRule.js +2 -0
- package/lb/getListenerRule.js.map +1 -1
- package/lb/listenerRule.d.ts +45 -0
- package/lb/listenerRule.js +35 -0
- package/lb/listenerRule.js.map +1 -1
- package/m2/application.d.ts +13 -13
- package/m2/application.js +13 -13
- package/mq/configuration.d.ts +4 -4
- package/mq/configuration.js +4 -4
- package/networkmanager/siteToSiteVpnAttachment.d.ts +77 -0
- package/networkmanager/siteToSiteVpnAttachment.js +77 -0
- package/networkmanager/siteToSiteVpnAttachment.js.map +1 -1
- package/opensearchingest/pipeline.d.ts +6 -6
- package/opensearchingest/pipeline.js +6 -6
- package/organizations/getPolicies.d.ts +34 -0
- package/organizations/getPolicies.js +34 -0
- package/organizations/getPolicies.js.map +1 -1
- package/organizations/getPoliciesForTarget.d.ts +38 -0
- package/organizations/getPoliciesForTarget.js +38 -0
- package/organizations/getPoliciesForTarget.js.map +1 -1
- package/organizations/resourcePolicy.d.ts +23 -23
- package/organizations/resourcePolicy.js +23 -23
- package/package.json +2 -2
- package/rds/customDbEngineVersion.d.ts +1 -1
- package/rds/customDbEngineVersion.js +1 -1
- package/resourcegroups/group.d.ts +5 -5
- package/resourcegroups/group.js +5 -5
- package/route53/trafficPolicy.d.ts +7 -7
- package/route53/trafficPolicy.js +7 -7
- package/s3/bucketWebsiteConfiguration.d.ts +4 -4
- package/s3/bucketWebsiteConfiguration.js +4 -4
- package/s3/bucketWebsiteConfigurationV2.d.ts +4 -4
- package/s3/bucketWebsiteConfigurationV2.js +4 -4
- package/s3control/accessGrantsInstanceResourcePolicy.d.ts +12 -12
- package/s3control/accessGrantsInstanceResourcePolicy.js +12 -12
- package/sagemaker/flowDefinition.d.ts +9 -9
- package/sagemaker/flowDefinition.js +9 -9
- package/sagemaker/model.d.ts +11 -6
- package/sagemaker/model.js +5 -0
- package/sagemaker/model.js.map +1 -1
- package/sagemaker/modelPackageGroupPolicy.d.ts +31 -0
- package/sagemaker/modelPackageGroupPolicy.js +31 -0
- package/sagemaker/modelPackageGroupPolicy.js.map +1 -1
- package/sagemaker/notebookInstance.d.ts +3 -3
- package/secretsmanager/getSecretVersion.d.ts +26 -0
- package/secretsmanager/getSecretVersion.js +26 -0
- package/secretsmanager/getSecretVersion.js.map +1 -1
- package/secretsmanager/secretVersion.d.ts +31 -0
- package/secretsmanager/secretVersion.js +31 -0
- package/secretsmanager/secretVersion.js.map +1 -1
- package/securityhub/standardsControlAssociation.d.ts +26 -0
- package/securityhub/standardsControlAssociation.js +26 -0
- package/securityhub/standardsControlAssociation.js.map +1 -1
- package/sesv2/emailIdentityPolicy.d.ts +13 -13
- package/sesv2/emailIdentityPolicy.js +13 -13
- package/sfn/stateMachine.d.ts +35 -35
- package/sfn/stateMachine.js +35 -35
- package/sns/topic.d.ts +12 -12
- package/sns/topic.js +12 -12
- package/sns/topicSubscription.d.ts +13 -13
- package/sns/topicSubscription.js +13 -13
- package/sqs/queue.d.ts +0 -6
- package/sqs/queue.js +0 -6
- package/sqs/queue.js.map +1 -1
- package/ssm/association.d.ts +1 -1
- package/ssm/association.js +1 -1
- package/ssm/document.d.ts +8 -8
- package/ssm/document.js +8 -8
- package/timestreamquery/scheduledQuery.d.ts +8 -8
- package/timestreamquery/scheduledQuery.js +8 -8
- package/types/input.d.ts +377 -21
- package/types/input.js.map +1 -1
- package/types/output.d.ts +331 -20
- package/types/output.js.map +1 -1
|
@@ -15,6 +15,106 @@ const utilities = require("../utilities");
|
|
|
15
15
|
*
|
|
16
16
|
* ## Example Usage
|
|
17
17
|
*
|
|
18
|
+
* ### Basic Dynamic Scaling
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as aws from "@pulumi/aws";
|
|
23
|
+
* import * as std from "@pulumi/std";
|
|
24
|
+
*
|
|
25
|
+
* const available = aws.getAvailabilityZones({});
|
|
26
|
+
* const example = new aws.autoscaling.Group("example", {
|
|
27
|
+
* namePrefix: "example",
|
|
28
|
+
* launchConfiguration: exampleAwsLaunchConfiguration.name,
|
|
29
|
+
* availabilityZones: [available.then(available => available.names?.[0])],
|
|
30
|
+
* minSize: 0,
|
|
31
|
+
* maxSize: 3,
|
|
32
|
+
* tags: [{
|
|
33
|
+
* key: "application",
|
|
34
|
+
* value: "example",
|
|
35
|
+
* propagateAtLaunch: true,
|
|
36
|
+
* }],
|
|
37
|
+
* });
|
|
38
|
+
* const exampleScalingPlan = new aws.autoscalingplans.ScalingPlan("example", {
|
|
39
|
+
* name: "example-dynamic-cost-optimization",
|
|
40
|
+
* applicationSource: {
|
|
41
|
+
* tagFilters: [{
|
|
42
|
+
* key: "application",
|
|
43
|
+
* values: ["example"],
|
|
44
|
+
* }],
|
|
45
|
+
* },
|
|
46
|
+
* scalingInstructions: [{
|
|
47
|
+
* maxCapacity: 3,
|
|
48
|
+
* minCapacity: 0,
|
|
49
|
+
* resourceId: std.format({
|
|
50
|
+
* input: "autoScalingGroup/%s",
|
|
51
|
+
* args: [example.name],
|
|
52
|
+
* }).then(invoke => invoke.result),
|
|
53
|
+
* scalableDimension: "autoscaling:autoScalingGroup:DesiredCapacity",
|
|
54
|
+
* serviceNamespace: "autoscaling",
|
|
55
|
+
* targetTrackingConfigurations: [{
|
|
56
|
+
* predefinedScalingMetricSpecification: {
|
|
57
|
+
* predefinedScalingMetricType: "ASGAverageCPUUtilization",
|
|
58
|
+
* },
|
|
59
|
+
* targetValue: 70,
|
|
60
|
+
* }],
|
|
61
|
+
* }],
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* ### Basic Predictive Scaling
|
|
66
|
+
*
|
|
67
|
+
* ```typescript
|
|
68
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
69
|
+
* import * as aws from "@pulumi/aws";
|
|
70
|
+
* import * as std from "@pulumi/std";
|
|
71
|
+
*
|
|
72
|
+
* const available = aws.getAvailabilityZones({});
|
|
73
|
+
* const example = new aws.autoscaling.Group("example", {
|
|
74
|
+
* namePrefix: "example",
|
|
75
|
+
* launchConfiguration: exampleAwsLaunchConfiguration.name,
|
|
76
|
+
* availabilityZones: [available.then(available => available.names?.[0])],
|
|
77
|
+
* minSize: 0,
|
|
78
|
+
* maxSize: 3,
|
|
79
|
+
* tags: [{
|
|
80
|
+
* key: "application",
|
|
81
|
+
* value: "example",
|
|
82
|
+
* propagateAtLaunch: true,
|
|
83
|
+
* }],
|
|
84
|
+
* });
|
|
85
|
+
* const exampleScalingPlan = new aws.autoscalingplans.ScalingPlan("example", {
|
|
86
|
+
* name: "example-predictive-cost-optimization",
|
|
87
|
+
* applicationSource: {
|
|
88
|
+
* tagFilters: [{
|
|
89
|
+
* key: "application",
|
|
90
|
+
* values: ["example"],
|
|
91
|
+
* }],
|
|
92
|
+
* },
|
|
93
|
+
* scalingInstructions: [{
|
|
94
|
+
* disableDynamicScaling: true,
|
|
95
|
+
* maxCapacity: 3,
|
|
96
|
+
* minCapacity: 0,
|
|
97
|
+
* resourceId: std.format({
|
|
98
|
+
* input: "autoScalingGroup/%s",
|
|
99
|
+
* args: [example.name],
|
|
100
|
+
* }).then(invoke => invoke.result),
|
|
101
|
+
* scalableDimension: "autoscaling:autoScalingGroup:DesiredCapacity",
|
|
102
|
+
* serviceNamespace: "autoscaling",
|
|
103
|
+
* targetTrackingConfigurations: [{
|
|
104
|
+
* predefinedScalingMetricSpecification: {
|
|
105
|
+
* predefinedScalingMetricType: "ASGAverageCPUUtilization",
|
|
106
|
+
* },
|
|
107
|
+
* targetValue: 70,
|
|
108
|
+
* }],
|
|
109
|
+
* predictiveScalingMaxCapacityBehavior: "SetForecastCapacityToMaxCapacity",
|
|
110
|
+
* predictiveScalingMode: "ForecastAndScale",
|
|
111
|
+
* predefinedLoadMetricSpecification: {
|
|
112
|
+
* predefinedLoadMetricType: "ASGTotalCPUUtilization",
|
|
113
|
+
* },
|
|
114
|
+
* }],
|
|
115
|
+
* });
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
18
118
|
* ## Import
|
|
19
119
|
*
|
|
20
120
|
* Using `pulumi import`, import Auto Scaling scaling plans using the `name`. For example:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scalingPlan.js","sourceRoot":"","sources":["../../autoscalingplans/scalingPlan.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"scalingPlan.js","sourceRoot":"","sources":["../../autoscalingplans/scalingPlan.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqHG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QA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AoFC;AAtEG,gBAAgB;AACO,wBAAY,GAAG,8CAA8C,CAAC"}
|
package/bcmdata/export.d.ts
CHANGED
|
@@ -86,6 +86,9 @@ export declare class Export extends pulumi.CustomResource {
|
|
|
86
86
|
* The details of the export, including data query, name, description, and destination configuration. See the `export` argument reference below.
|
|
87
87
|
*/
|
|
88
88
|
readonly export: pulumi.Output<outputs.bcmdata.ExportExport | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
91
|
+
*/
|
|
89
92
|
readonly tags: pulumi.Output<{
|
|
90
93
|
[key: string]: string;
|
|
91
94
|
} | undefined>;
|
|
@@ -115,6 +118,9 @@ export interface ExportState {
|
|
|
115
118
|
* The details of the export, including data query, name, description, and destination configuration. See the `export` argument reference below.
|
|
116
119
|
*/
|
|
117
120
|
export?: pulumi.Input<inputs.bcmdata.ExportExport>;
|
|
121
|
+
/**
|
|
122
|
+
* Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
123
|
+
*/
|
|
118
124
|
tags?: pulumi.Input<{
|
|
119
125
|
[key: string]: pulumi.Input<string>;
|
|
120
126
|
}>;
|
|
@@ -131,6 +137,9 @@ export interface ExportArgs {
|
|
|
131
137
|
* The details of the export, including data query, name, description, and destination configuration. See the `export` argument reference below.
|
|
132
138
|
*/
|
|
133
139
|
export?: pulumi.Input<inputs.bcmdata.ExportExport>;
|
|
140
|
+
/**
|
|
141
|
+
* Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
142
|
+
*/
|
|
134
143
|
tags?: pulumi.Input<{
|
|
135
144
|
[key: string]: pulumi.Input<string>;
|
|
136
145
|
}>;
|
package/bcmdata/export.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../bcmdata/export.ts"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AAC"}
|
|
@@ -47,6 +47,9 @@ export declare class AgentcoreAgentRuntimeEndpoint extends pulumi.CustomResource
|
|
|
47
47
|
* ARN of the associated Agent Runtime.
|
|
48
48
|
*/
|
|
49
49
|
readonly agentRuntimeArn: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* ARN of the Agent Runtime Endpoint.
|
|
52
|
+
*/
|
|
50
53
|
readonly agentRuntimeEndpointArn: pulumi.Output<string>;
|
|
51
54
|
/**
|
|
52
55
|
* ID of the agent runtime this endpoint belongs to.
|
|
@@ -100,6 +103,9 @@ export interface AgentcoreAgentRuntimeEndpointState {
|
|
|
100
103
|
* ARN of the associated Agent Runtime.
|
|
101
104
|
*/
|
|
102
105
|
agentRuntimeArn?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* ARN of the Agent Runtime Endpoint.
|
|
108
|
+
*/
|
|
103
109
|
agentRuntimeEndpointArn?: pulumi.Input<string>;
|
|
104
110
|
/**
|
|
105
111
|
* ID of the agent runtime this endpoint belongs to.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentcoreAgentRuntimeEndpoint.js","sourceRoot":"","sources":["../../bedrock/agentcoreAgentRuntimeEndpoint.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;IACpE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0C,EAAE,IAAmC;QACxI,OAAO,IAAI,6BAA6B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAA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AC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,6BAA6B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;;AA7GL,sEA8GC;AAhGG,gBAAgB;AACO,0CAAY,GAAG,yEAAyE,CAAC"}
|
|
@@ -106,11 +106,11 @@ export declare class AgentcoreGateway extends pulumi.CustomResource {
|
|
|
106
106
|
*/
|
|
107
107
|
static isInstance(obj: any): obj is AgentcoreGateway;
|
|
108
108
|
/**
|
|
109
|
-
* Configuration for request authorization. See `authorizerConfiguration` below.
|
|
109
|
+
* Configuration for request authorization. Required when `authorizerType` is set to `CUSTOM_JWT`. See `authorizerConfiguration` below.
|
|
110
110
|
*/
|
|
111
111
|
readonly authorizerConfiguration: pulumi.Output<outputs.bedrock.AgentcoreGatewayAuthorizerConfiguration | undefined>;
|
|
112
112
|
/**
|
|
113
|
-
* Type of authorizer to use. Valid values: `CUSTOM_JWT`, `AWS_IAM`.
|
|
113
|
+
* Type of authorizer to use. Valid values: `CUSTOM_JWT`, `AWS_IAM`. When set to `CUSTOM_JWT`, `authorizerConfiguration` block is required.
|
|
114
114
|
*/
|
|
115
115
|
readonly authorizerType: pulumi.Output<string>;
|
|
116
116
|
/**
|
|
@@ -190,11 +190,11 @@ export declare class AgentcoreGateway extends pulumi.CustomResource {
|
|
|
190
190
|
*/
|
|
191
191
|
export interface AgentcoreGatewayState {
|
|
192
192
|
/**
|
|
193
|
-
* Configuration for request authorization. See `authorizerConfiguration` below.
|
|
193
|
+
* Configuration for request authorization. Required when `authorizerType` is set to `CUSTOM_JWT`. See `authorizerConfiguration` below.
|
|
194
194
|
*/
|
|
195
195
|
authorizerConfiguration?: pulumi.Input<inputs.bedrock.AgentcoreGatewayAuthorizerConfiguration>;
|
|
196
196
|
/**
|
|
197
|
-
* Type of authorizer to use. Valid values: `CUSTOM_JWT`, `AWS_IAM`.
|
|
197
|
+
* Type of authorizer to use. Valid values: `CUSTOM_JWT`, `AWS_IAM`. When set to `CUSTOM_JWT`, `authorizerConfiguration` block is required.
|
|
198
198
|
*/
|
|
199
199
|
authorizerType?: pulumi.Input<string>;
|
|
200
200
|
/**
|
|
@@ -266,11 +266,11 @@ export interface AgentcoreGatewayState {
|
|
|
266
266
|
*/
|
|
267
267
|
export interface AgentcoreGatewayArgs {
|
|
268
268
|
/**
|
|
269
|
-
* Configuration for request authorization. See `authorizerConfiguration` below.
|
|
269
|
+
* Configuration for request authorization. Required when `authorizerType` is set to `CUSTOM_JWT`. See `authorizerConfiguration` below.
|
|
270
270
|
*/
|
|
271
271
|
authorizerConfiguration?: pulumi.Input<inputs.bedrock.AgentcoreGatewayAuthorizerConfiguration>;
|
|
272
272
|
/**
|
|
273
|
-
* Type of authorizer to use. Valid values: `CUSTOM_JWT`, `AWS_IAM`.
|
|
273
|
+
* Type of authorizer to use. Valid values: `CUSTOM_JWT`, `AWS_IAM`. When set to `CUSTOM_JWT`, `authorizerConfiguration` block is required.
|
|
274
274
|
*/
|
|
275
275
|
authorizerType: pulumi.Input<string>;
|
|
276
276
|
/**
|
|
@@ -22,25 +22,25 @@ import * as outputs from "../types/output";
|
|
|
22
22
|
* const exampleBucketPolicy = new aws.s3.BucketPolicy("example", {
|
|
23
23
|
* bucket: example.bucket,
|
|
24
24
|
* policy: pulumi.all([example.arn, current, current]).apply(([arn, current, current1]) => `{
|
|
25
|
-
* "Version": "2012-10-17",
|
|
26
|
-
* "Statement": [
|
|
25
|
+
* \"Version\": \"2012-10-17\",
|
|
26
|
+
* \"Statement\": [
|
|
27
27
|
* {
|
|
28
|
-
* "Effect": "Allow",
|
|
29
|
-
* "Principal": {
|
|
30
|
-
* "Service": "bedrock.amazonaws.com"
|
|
28
|
+
* \"Effect\": \"Allow\",
|
|
29
|
+
* \"Principal\": {
|
|
30
|
+
* \"Service\": \"bedrock.amazonaws.com\"
|
|
31
31
|
* },
|
|
32
|
-
* "Action": [
|
|
33
|
-
* "s3
|
|
32
|
+
* \"Action\": [
|
|
33
|
+
* \"s3:*\"
|
|
34
34
|
* ],
|
|
35
|
-
* "Resource": [
|
|
36
|
-
* "${arn}
|
|
35
|
+
* \"Resource\": [
|
|
36
|
+
* \"${arn}/*\"
|
|
37
37
|
* ],
|
|
38
|
-
* "Condition": {
|
|
39
|
-
* "StringEquals": {
|
|
40
|
-
* "aws:SourceAccount": "${current.accountId}"
|
|
38
|
+
* \"Condition\": {
|
|
39
|
+
* \"StringEquals\": {
|
|
40
|
+
* \"aws:SourceAccount\": \"${current.accountId}\"
|
|
41
41
|
* },
|
|
42
|
-
* "ArnLike": {
|
|
43
|
-
* "aws:SourceArn": "arn:aws:bedrock:us-east-1:${current1.accountId}
|
|
42
|
+
* \"ArnLike\": {
|
|
43
|
+
* \"aws:SourceArn\": \"arn:aws:bedrock:us-east-1:${current1.accountId}:*\"
|
|
44
44
|
* }
|
|
45
45
|
* }
|
|
46
46
|
* }
|
|
@@ -26,25 +26,25 @@ const utilities = require("../utilities");
|
|
|
26
26
|
* const exampleBucketPolicy = new aws.s3.BucketPolicy("example", {
|
|
27
27
|
* bucket: example.bucket,
|
|
28
28
|
* policy: pulumi.all([example.arn, current, current]).apply(([arn, current, current1]) => `{
|
|
29
|
-
* "Version": "2012-10-17",
|
|
30
|
-
* "Statement": [
|
|
29
|
+
* \"Version\": \"2012-10-17\",
|
|
30
|
+
* \"Statement\": [
|
|
31
31
|
* {
|
|
32
|
-
* "Effect": "Allow",
|
|
33
|
-
* "Principal": {
|
|
34
|
-
* "Service": "bedrock.amazonaws.com"
|
|
32
|
+
* \"Effect\": \"Allow\",
|
|
33
|
+
* \"Principal\": {
|
|
34
|
+
* \"Service\": \"bedrock.amazonaws.com\"
|
|
35
35
|
* },
|
|
36
|
-
* "Action": [
|
|
37
|
-
* "s3
|
|
36
|
+
* \"Action\": [
|
|
37
|
+
* \"s3:*\"
|
|
38
38
|
* ],
|
|
39
|
-
* "Resource": [
|
|
40
|
-
* "${arn}
|
|
39
|
+
* \"Resource\": [
|
|
40
|
+
* \"${arn}/*\"
|
|
41
41
|
* ],
|
|
42
|
-
* "Condition": {
|
|
43
|
-
* "StringEquals": {
|
|
44
|
-
* "aws:SourceAccount": "${current.accountId}"
|
|
42
|
+
* \"Condition\": {
|
|
43
|
+
* \"StringEquals\": {
|
|
44
|
+
* \"aws:SourceAccount\": \"${current.accountId}\"
|
|
45
45
|
* },
|
|
46
|
-
* "ArnLike": {
|
|
47
|
-
* "aws:SourceArn": "arn:aws:bedrock:us-east-1:${current1.accountId}
|
|
46
|
+
* \"ArnLike\": {
|
|
47
|
+
* \"aws:SourceArn\": \"arn:aws:bedrock:us-east-1:${current1.accountId}:*\"
|
|
48
48
|
* }
|
|
49
49
|
* }
|
|
50
50
|
* }
|
|
@@ -18,15 +18,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
18
18
|
* policyText: `let status = ['ACTIVE']
|
|
19
19
|
*
|
|
20
20
|
* rule tableisactive when
|
|
21
|
-
* resourceType == "AWS::DynamoDB::Table" {
|
|
21
|
+
* resourceType == \\"AWS::DynamoDB::Table\\" {
|
|
22
22
|
* configuration.tableStatus == %status
|
|
23
23
|
* }
|
|
24
24
|
*
|
|
25
25
|
* rule checkcompliance when
|
|
26
|
-
* resourceType == "AWS::DynamoDB::Table"
|
|
26
|
+
* resourceType == \\"AWS::DynamoDB::Table\\"
|
|
27
27
|
* tableisactive {
|
|
28
28
|
* let pitr = supplementaryConfiguration.ContinuousBackupsDescription.pointInTimeRecoveryDescription.pointInTimeRecoveryStatus
|
|
29
|
-
* %pitr == "ENABLED"
|
|
29
|
+
* %pitr == \\"ENABLED\\"
|
|
30
30
|
* }
|
|
31
31
|
* `,
|
|
32
32
|
* resourceTypesScopes: ["AWS::DynamoDB::Table"],
|
|
@@ -24,15 +24,15 @@ const utilities = require("../utilities");
|
|
|
24
24
|
* policyText: `let status = ['ACTIVE']
|
|
25
25
|
*
|
|
26
26
|
* rule tableisactive when
|
|
27
|
-
* resourceType == "AWS::DynamoDB::Table" {
|
|
27
|
+
* resourceType == \\"AWS::DynamoDB::Table\\" {
|
|
28
28
|
* configuration.tableStatus == %status
|
|
29
29
|
* }
|
|
30
30
|
*
|
|
31
31
|
* rule checkcompliance when
|
|
32
|
-
* resourceType == "AWS::DynamoDB::Table"
|
|
32
|
+
* resourceType == \\"AWS::DynamoDB::Table\\"
|
|
33
33
|
* tableisactive {
|
|
34
34
|
* let pitr = supplementaryConfiguration.ContinuousBackupsDescription.pointInTimeRecoveryDescription.pointInTimeRecoveryStatus
|
|
35
|
-
* %pitr == "ENABLED"
|
|
35
|
+
* %pitr == \\"ENABLED\\"
|
|
36
36
|
* }
|
|
37
37
|
* `,
|
|
38
38
|
* resourceTypesScopes: ["AWS::DynamoDB::Table"],
|
package/cfg/rule.d.ts
CHANGED
|
@@ -99,16 +99,16 @@ import * as outputs from "../types/output";
|
|
|
99
99
|
* }],
|
|
100
100
|
* customPolicyDetails: {
|
|
101
101
|
* policyRuntime: "guard-2.x.x",
|
|
102
|
-
* policyText:
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
102
|
+
* policyText: `\\t rule tableisactive when
|
|
103
|
+
* \\t\\t resourceType == \\"AWS::DynamoDB::Table\\" {
|
|
104
|
+
* \\t\\t configuration.tableStatus == ['ACTIVE']
|
|
105
|
+
* \\t }
|
|
106
|
+
* \\t
|
|
107
|
+
* \\t rule checkcompliance when
|
|
108
|
+
* \\t\\t resourceType == \\"AWS::DynamoDB::Table\\"
|
|
109
|
+
* \\t\\t tableisactive {
|
|
110
|
+
* \\t\\t\\t supplementaryConfiguration.ContinuousBackupsDescription.pointInTimeRecoveryDescription.pointInTimeRecoveryStatus == \\"ENABLED\\"
|
|
111
|
+
* \\t }
|
|
112
112
|
* `,
|
|
113
113
|
* },
|
|
114
114
|
* },
|
package/cfg/rule.js
CHANGED
|
@@ -103,16 +103,16 @@ const utilities = require("../utilities");
|
|
|
103
103
|
* }],
|
|
104
104
|
* customPolicyDetails: {
|
|
105
105
|
* policyRuntime: "guard-2.x.x",
|
|
106
|
-
* policyText:
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
106
|
+
* policyText: `\\t rule tableisactive when
|
|
107
|
+
* \\t\\t resourceType == \\"AWS::DynamoDB::Table\\" {
|
|
108
|
+
* \\t\\t configuration.tableStatus == ['ACTIVE']
|
|
109
|
+
* \\t }
|
|
110
|
+
* \\t
|
|
111
|
+
* \\t rule checkcompliance when
|
|
112
|
+
* \\t\\t resourceType == \\"AWS::DynamoDB::Table\\"
|
|
113
|
+
* \\t\\t tableisactive {
|
|
114
|
+
* \\t\\t\\t supplementaryConfiguration.ContinuousBackupsDescription.pointInTimeRecoveryDescription.pointInTimeRecoveryStatus == \\"ENABLED\\"
|
|
115
|
+
* \\t }
|
|
116
116
|
* `,
|
|
117
117
|
* },
|
|
118
118
|
* },
|
|
@@ -313,8 +313,8 @@ import * as outputs from "../types/output";
|
|
|
313
313
|
* status: "$.detail.status",
|
|
314
314
|
* },
|
|
315
315
|
* inputTemplate: `{
|
|
316
|
-
* "instance_id": <instance>,
|
|
317
|
-
* "instance_status": <status>
|
|
316
|
+
* \\"instance_id\\": <instance>,
|
|
317
|
+
* \\"instance_status\\": <status>
|
|
318
318
|
* }
|
|
319
319
|
* `,
|
|
320
320
|
* },
|
|
@@ -467,7 +467,7 @@ import * as outputs from "../types/output";
|
|
|
467
467
|
* input: "$.detail.input",
|
|
468
468
|
* },
|
|
469
469
|
* inputTemplate: ` {
|
|
470
|
-
* "input": <input>
|
|
470
|
+
* \\"input\\": <input>
|
|
471
471
|
* }
|
|
472
472
|
* `,
|
|
473
473
|
* },
|
|
@@ -317,8 +317,8 @@ const utilities = require("../utilities");
|
|
|
317
317
|
* status: "$.detail.status",
|
|
318
318
|
* },
|
|
319
319
|
* inputTemplate: `{
|
|
320
|
-
* "instance_id": <instance>,
|
|
321
|
-
* "instance_status": <status>
|
|
320
|
+
* \\"instance_id\\": <instance>,
|
|
321
|
+
* \\"instance_status\\": <status>
|
|
322
322
|
* }
|
|
323
323
|
* `,
|
|
324
324
|
* },
|
|
@@ -471,7 +471,7 @@ const utilities = require("../utilities");
|
|
|
471
471
|
* input: "$.detail.input",
|
|
472
472
|
* },
|
|
473
473
|
* inputTemplate: ` {
|
|
474
|
-
* "input": <input>
|
|
474
|
+
* \\"input\\": <input>
|
|
475
475
|
* }
|
|
476
476
|
* `,
|
|
477
477
|
* },
|
|
@@ -160,7 +160,7 @@ import { Topic } from "../sns";
|
|
|
160
160
|
* id: "q1",
|
|
161
161
|
* expression: `SELECT
|
|
162
162
|
* MAX(DBLoadRelativeToNumVCPUs)
|
|
163
|
-
* FROM SCHEMA("AWS/RDS", DBInstanceIdentifier)
|
|
163
|
+
* FROM SCHEMA(\\"AWS/RDS\\", DBInstanceIdentifier)
|
|
164
164
|
* WHERE DBInstanceIdentifier != 'example-rds-instance'
|
|
165
165
|
* GROUP BY DBInstanceIdentifier
|
|
166
166
|
* ORDER BY MIN() ASC
|
|
@@ -163,7 +163,7 @@ const utilities = require("../utilities");
|
|
|
163
163
|
* id: "q1",
|
|
164
164
|
* expression: `SELECT
|
|
165
165
|
* MAX(DBLoadRelativeToNumVCPUs)
|
|
166
|
-
* FROM SCHEMA("AWS/RDS", DBInstanceIdentifier)
|
|
166
|
+
* FROM SCHEMA(\\"AWS/RDS\\", DBInstanceIdentifier)
|
|
167
167
|
* WHERE DBInstanceIdentifier != 'example-rds-instance'
|
|
168
168
|
* GROUP BY DBInstanceIdentifier
|
|
169
169
|
* ORDER BY MIN() ASC
|
package/codebuild/webhook.d.ts
CHANGED
|
@@ -42,6 +42,26 @@ import * as outputs from "../types/output";
|
|
|
42
42
|
*
|
|
43
43
|
* More information creating webhooks with GitHub Enterprise can be found in the [CodeBuild User Guide](https://docs.aws.amazon.com/codebuild/latest/userguide/sample-github-enterprise.html).
|
|
44
44
|
*
|
|
45
|
+
* ```typescript
|
|
46
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
47
|
+
* import * as aws from "@pulumi/aws";
|
|
48
|
+
* import * as github from "@pulumi/github";
|
|
49
|
+
*
|
|
50
|
+
* const example = new aws.codebuild.Webhook("example", {projectName: exampleAwsCodebuildProject.name});
|
|
51
|
+
* const exampleRepositoryWebhook = new github.index.RepositoryWebhook("example", {
|
|
52
|
+
* active: true,
|
|
53
|
+
* events: ["push"],
|
|
54
|
+
* name: "example",
|
|
55
|
+
* repository: exampleGithubRepository.name,
|
|
56
|
+
* configuration: [{
|
|
57
|
+
* url: example.payloadUrl,
|
|
58
|
+
* secret: example.secret,
|
|
59
|
+
* contentType: "json",
|
|
60
|
+
* insecureSsl: false,
|
|
61
|
+
* }],
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
45
65
|
* ### For CodeBuild Runner Project
|
|
46
66
|
*
|
|
47
67
|
* To create a CodeBuild project as a Runner Project, the following `aws.codebuild.Webhook` resource is required for the project.
|
package/codebuild/webhook.js
CHANGED
|
@@ -46,6 +46,26 @@ const utilities = require("../utilities");
|
|
|
46
46
|
*
|
|
47
47
|
* More information creating webhooks with GitHub Enterprise can be found in the [CodeBuild User Guide](https://docs.aws.amazon.com/codebuild/latest/userguide/sample-github-enterprise.html).
|
|
48
48
|
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as aws from "@pulumi/aws";
|
|
52
|
+
* import * as github from "@pulumi/github";
|
|
53
|
+
*
|
|
54
|
+
* const example = new aws.codebuild.Webhook("example", {projectName: exampleAwsCodebuildProject.name});
|
|
55
|
+
* const exampleRepositoryWebhook = new github.index.RepositoryWebhook("example", {
|
|
56
|
+
* active: true,
|
|
57
|
+
* events: ["push"],
|
|
58
|
+
* name: "example",
|
|
59
|
+
* repository: exampleGithubRepository.name,
|
|
60
|
+
* configuration: [{
|
|
61
|
+
* url: example.payloadUrl,
|
|
62
|
+
* secret: example.secret,
|
|
63
|
+
* contentType: "json",
|
|
64
|
+
* insecureSsl: false,
|
|
65
|
+
* }],
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
49
69
|
* ### For CodeBuild Runner Project
|
|
50
70
|
*
|
|
51
71
|
* To create a CodeBuild project as a Runner Project, the following `aws.codebuild.Webhook` resource is required for the project.
|
package/codebuild/webhook.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../codebuild/webhook.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../codebuild/webhook.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,G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
11
|
+
* import * as aws from "@pulumi/aws";
|
|
12
|
+
* import * as github from "@pulumi/github";
|
|
13
|
+
*
|
|
14
|
+
* const bar = new aws.codepipeline.Pipeline("bar", {
|
|
15
|
+
* name: "tf-test-pipeline",
|
|
16
|
+
* roleArn: barAwsIamRole.arn,
|
|
17
|
+
* artifactStores: [{
|
|
18
|
+
* location: barAwsS3Bucket.bucket,
|
|
19
|
+
* type: "S3",
|
|
20
|
+
* encryptionKey: {
|
|
21
|
+
* id: s3kmskey.arn,
|
|
22
|
+
* type: "KMS",
|
|
23
|
+
* },
|
|
24
|
+
* }],
|
|
25
|
+
* stages: [
|
|
26
|
+
* {
|
|
27
|
+
* name: "Source",
|
|
28
|
+
* actions: [{
|
|
29
|
+
* name: "Source",
|
|
30
|
+
* category: "Source",
|
|
31
|
+
* owner: "ThirdParty",
|
|
32
|
+
* provider: "GitHub",
|
|
33
|
+
* version: "1",
|
|
34
|
+
* outputArtifacts: ["test"],
|
|
35
|
+
* configuration: {
|
|
36
|
+
* Owner: "my-organization",
|
|
37
|
+
* Repo: "test",
|
|
38
|
+
* Branch: "master",
|
|
39
|
+
* },
|
|
40
|
+
* }],
|
|
41
|
+
* },
|
|
42
|
+
* {
|
|
43
|
+
* name: "Build",
|
|
44
|
+
* actions: [{
|
|
45
|
+
* name: "Build",
|
|
46
|
+
* category: "Build",
|
|
47
|
+
* owner: "AWS",
|
|
48
|
+
* provider: "CodeBuild",
|
|
49
|
+
* inputArtifacts: ["test"],
|
|
50
|
+
* version: "1",
|
|
51
|
+
* configuration: {
|
|
52
|
+
* ProjectName: "test",
|
|
53
|
+
* },
|
|
54
|
+
* }],
|
|
55
|
+
* },
|
|
56
|
+
* ],
|
|
57
|
+
* });
|
|
58
|
+
* const webhookSecret = "super-secret";
|
|
59
|
+
* const barWebhook = new aws.codepipeline.Webhook("bar", {
|
|
60
|
+
* name: "test-webhook-github-bar",
|
|
61
|
+
* authentication: "GITHUB_HMAC",
|
|
62
|
+
* targetAction: "Source",
|
|
63
|
+
* targetPipeline: bar.name,
|
|
64
|
+
* authenticationConfiguration: {
|
|
65
|
+
* secretToken: webhookSecret,
|
|
66
|
+
* },
|
|
67
|
+
* filters: [{
|
|
68
|
+
* jsonPath: "$.ref",
|
|
69
|
+
* matchEquals: "refs/heads/{Branch}",
|
|
70
|
+
* }],
|
|
71
|
+
* });
|
|
72
|
+
* // Wire the CodePipeline webhook into a GitHub repository.
|
|
73
|
+
* const barRepositoryWebhook = new github.index.RepositoryWebhook("bar", {
|
|
74
|
+
* repository: repo.name,
|
|
75
|
+
* name: "web",
|
|
76
|
+
* configuration: [{
|
|
77
|
+
* url: barWebhook.url,
|
|
78
|
+
* contentType: "json",
|
|
79
|
+
* insecureSsl: true,
|
|
80
|
+
* secret: webhookSecret,
|
|
81
|
+
* }],
|
|
82
|
+
* events: ["push"],
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
9
86
|
* ## Import
|
|
10
87
|
*
|
|
11
88
|
* ### Identity Schema
|