@pulumi/aws 7.12.0-alpha.1762435934 → 7.12.0-alpha.1763660660
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/acm/certificate.d.ts +2 -2
- package/acm/certificate.js +2 -2
- package/acmpca/certificate.d.ts +2 -2
- package/acmpca/certificate.js +2 -2
- package/apigateway/account.d.ts +0 -2
- package/apigateway/account.js +0 -2
- package/apigateway/account.js.map +1 -1
- package/appsync/graphQLApi.d.ts +45 -0
- package/appsync/graphQLApi.js +45 -0
- package/appsync/graphQLApi.js.map +1 -1
- package/bedrock/agentAgentAlias.d.ts +55 -0
- package/bedrock/agentAgentAlias.js +55 -0
- package/bedrock/agentAgentAlias.js.map +1 -1
- package/bedrock/agentcoreAgentRuntime.d.ts +2 -2
- package/bedrock/agentcoreAgentRuntime.js +2 -2
- package/bedrock/agentcoreBrowser.d.ts +22 -0
- package/bedrock/agentcoreBrowser.js +22 -0
- package/bedrock/agentcoreBrowser.js.map +1 -1
- package/bedrock/agentcoreGatewayTarget.d.ts +117 -3
- package/bedrock/agentcoreGatewayTarget.js +114 -0
- package/bedrock/agentcoreGatewayTarget.js.map +1 -1
- package/bedrock/agentcoreMemory.d.ts +19 -4
- package/bedrock/agentcoreMemory.js +16 -1
- package/bedrock/agentcoreMemory.js.map +1 -1
- package/bedrock/agentcoreOauth2CredentialProvider.d.ts +20 -0
- package/bedrock/agentcoreOauth2CredentialProvider.js +20 -0
- package/bedrock/agentcoreOauth2CredentialProvider.js.map +1 -1
- package/bedrockmodel/invocationLoggingConfiguration.d.ts +1 -1
- package/bedrockmodel/invocationLoggingConfiguration.js +1 -1
- package/cloudfront/distribution.d.ts +8 -0
- package/cloudfront/distribution.js +2 -0
- package/cloudfront/distribution.js.map +1 -1
- package/cloudhsmv2/cluster.d.ts +36 -0
- package/cloudhsmv2/cluster.js +36 -0
- package/cloudhsmv2/cluster.js.map +1 -1
- package/cloudtrail/trail.d.ts +1 -1
- package/cloudtrail/trail.js +1 -1
- package/cloudwatch/contributorManagedInsightRule.d.ts +11 -0
- package/cloudwatch/contributorManagedInsightRule.js +11 -0
- package/cloudwatch/contributorManagedInsightRule.js.map +1 -1
- package/cloudwatch/logDeliveryDestination.d.ts +21 -5
- package/cloudwatch/logDeliveryDestination.js +13 -1
- package/cloudwatch/logDeliveryDestination.js.map +1 -1
- package/codebuild/webhook.d.ts +1 -1
- package/codebuild/webhook.js +1 -1
- package/codepipeline/webhook.d.ts +1 -1
- package/codepipeline/webhook.js +1 -1
- package/connect/routingProfile.d.ts +21 -9
- package/connect/routingProfile.js +17 -5
- package/connect/routingProfile.js.map +1 -1
- package/datasync/locationFsxOntapFileSystem.d.ts +18 -0
- package/datasync/locationFsxOntapFileSystem.js +18 -0
- package/datasync/locationFsxOntapFileSystem.js.map +1 -1
- package/datazone/project.d.ts +13 -0
- package/datazone/project.js +13 -0
- package/datazone/project.js.map +1 -1
- package/detective/organizationConfiguration.d.ts +11 -0
- package/detective/organizationConfiguration.js +11 -0
- package/detective/organizationConfiguration.js.map +1 -1
- package/ec2/allowedImagesSettings.d.ts +124 -0
- package/ec2/allowedImagesSettings.js +106 -0
- package/ec2/allowedImagesSettings.js.map +1 -0
- package/ec2/getCoipPools.d.ts +32 -0
- package/ec2/getCoipPools.js +32 -0
- package/ec2/getCoipPools.js.map +1 -1
- package/ec2/imageBlockPublicAccess.d.ts +12 -0
- package/ec2/imageBlockPublicAccess.js +2 -0
- package/ec2/imageBlockPublicAccess.js.map +1 -1
- package/ec2/index.d.ts +3 -0
- package/ec2/index.js +10 -5
- package/ec2/index.js.map +1 -1
- package/ec2/securityGroup.d.ts +2 -2
- package/ec2/securityGroup.js +2 -2
- package/ec2/serialConsoleAccess.d.ts +12 -0
- package/ec2/serialConsoleAccess.js +2 -0
- package/ec2/serialConsoleAccess.js.map +1 -1
- package/ec2/vpcEndpoint.d.ts +50 -0
- package/ec2/vpcEndpoint.js +50 -0
- package/ec2/vpcEndpoint.js.map +1 -1
- package/ec2clientvpn/authorizationRule.d.ts +3 -3
- package/ec2clientvpn/route.d.ts +3 -3
- package/ec2transitgateway/instanceConnectEndpoint.d.ts +12 -0
- package/ec2transitgateway/instanceConnectEndpoint.js +2 -0
- package/ec2transitgateway/instanceConnectEndpoint.js.map +1 -1
- package/ecrpublic/getImages.d.ts +36 -0
- package/ecrpublic/getImages.js +36 -0
- package/ecrpublic/getImages.js.map +1 -1
- package/ecs/getService.d.ts +94 -3
- package/ecs/getService.js.map +1 -1
- package/ecs/service.d.ts +40 -0
- package/ecs/service.js +40 -0
- package/ecs/service.js.map +1 -1
- package/elasticache/getReplicationGroup.d.ts +12 -8
- package/elasticache/getReplicationGroup.js.map +1 -1
- package/elasticache/replicationGroup.d.ts +47 -0
- package/elasticache/replicationGroup.js +37 -0
- package/elasticache/replicationGroup.js.map +1 -1
- package/elasticache/reservedCacheNode.d.ts +17 -0
- package/elasticache/reservedCacheNode.js +17 -0
- package/elasticache/reservedCacheNode.js.map +1 -1
- package/finspace/kxCluster.d.ts +39 -0
- package/finspace/kxCluster.js +39 -0
- package/finspace/kxCluster.js.map +1 -1
- package/fis/index.d.ts +3 -0
- package/fis/index.js +6 -1
- package/fis/index.js.map +1 -1
- package/fis/targetAccountConfiguration.d.ts +129 -0
- package/fis/targetAccountConfiguration.js +90 -0
- package/fis/targetAccountConfiguration.js.map +1 -0
- package/glue/job.d.ts +3 -3
- package/guardduty/malwareProtectionPlan.d.ts +26 -0
- package/guardduty/malwareProtectionPlan.js +26 -0
- package/guardduty/malwareProtectionPlan.js.map +1 -1
- package/guardduty/memberDetectorFeature.d.ts +23 -0
- package/guardduty/memberDetectorFeature.js +23 -0
- package/guardduty/memberDetectorFeature.js.map +1 -1
- package/index.d.ts +4 -1
- package/index.js +10 -3
- package/index.js.map +1 -1
- package/invoicing/index.d.ts +3 -0
- package/invoicing/index.js +22 -0
- package/invoicing/index.js.map +1 -0
- package/invoicing/invoiceUnit.d.ts +195 -0
- package/invoicing/invoiceUnit.js +102 -0
- package/invoicing/invoiceUnit.js.map +1 -0
- package/iot/caCertificate.d.ts +6 -6
- package/iot/caCertificate.js +6 -6
- package/iot/getRegistrationCode.d.ts +6 -6
- package/iot/getRegistrationCode.js +6 -6
- package/ivschat/loggingConfiguration.d.ts +15 -0
- package/ivschat/loggingConfiguration.js +15 -0
- package/ivschat/loggingConfiguration.js.map +1 -1
- package/kinesis/getStream.d.ts +4 -0
- package/kinesis/getStream.js.map +1 -1
- package/kinesis/stream.d.ts +12 -0
- package/kinesis/stream.js +2 -0
- package/kinesis/stream.js.map +1 -1
- package/kms/key.d.ts +3 -3
- package/licensemanager/licenseGrant.d.ts +19 -0
- package/licensemanager/licenseGrant.js +19 -0
- package/licensemanager/licenseGrant.js.map +1 -1
- package/m2/environment.d.ts +79 -0
- package/m2/environment.js +79 -0
- package/m2/environment.js.map +1 -1
- package/networkfirewall/tlsInspectionConfiguration.d.ts +44 -0
- package/networkfirewall/tlsInspectionConfiguration.js +44 -0
- package/networkfirewall/tlsInspectionConfiguration.js.map +1 -1
- package/networkflowmonitor/index.d.ts +6 -0
- package/networkflowmonitor/index.js +27 -0
- package/networkflowmonitor/index.js.map +1 -0
- package/networkflowmonitor/monitor.d.ts +187 -0
- package/networkflowmonitor/monitor.js +113 -0
- package/networkflowmonitor/monitor.js.map +1 -0
- package/networkflowmonitor/scope.d.ts +153 -0
- package/networkflowmonitor/scope.js +97 -0
- package/networkflowmonitor/scope.js.map +1 -0
- package/observabilityadmin/centralizationRuleForOrganization.d.ts +246 -0
- package/observabilityadmin/centralizationRuleForOrganization.js +189 -0
- package/observabilityadmin/centralizationRuleForOrganization.js.map +1 -0
- package/observabilityadmin/index.d.ts +3 -0
- package/observabilityadmin/index.js +22 -0
- package/observabilityadmin/index.js.map +1 -0
- package/opensearch/authorizeVpcEndpointAccess.d.ts +2 -2
- package/opensearch/authorizeVpcEndpointAccess.js +2 -2
- package/opensearch/domain.d.ts +21 -0
- package/opensearch/domain.js +2 -0
- package/opensearch/domain.js.map +1 -1
- package/opensearch/getDomain.d.ts +5 -10
- package/opensearch/getDomain.js +0 -2
- package/opensearch/getDomain.js.map +1 -1
- package/opensearchingest/pipeline.d.ts +1 -1
- package/opensearchingest/pipeline.js +1 -1
- package/organizations/getPolicies.d.ts +2 -2
- package/organizations/getPoliciesForTarget.d.ts +2 -2
- package/organizations/getPolicy.d.ts +1 -1
- package/organizations/organization.d.ts +3 -3
- package/organizations/policy.d.ts +15 -3
- package/organizations/policy.js.map +1 -1
- package/package.json +2 -2
- package/quicksight/analysis.d.ts +55 -0
- package/quicksight/analysis.js +55 -0
- package/quicksight/analysis.js.map +1 -1
- package/quicksight/dashboard.d.ts +56 -0
- package/quicksight/dashboard.js +56 -0
- package/quicksight/dashboard.js.map +1 -1
- package/quicksight/dataSource.d.ts +1 -1
- package/quicksight/dataSource.js +1 -1
- package/quicksight/template.d.ts +64 -0
- package/quicksight/template.js +64 -0
- package/quicksight/template.js.map +1 -1
- package/redshift/clusterSnapshot.d.ts +14 -0
- package/redshift/clusterSnapshot.js +14 -0
- package/redshift/clusterSnapshot.js.map +1 -1
- package/redshift/getCluster.d.ts +58 -0
- package/redshift/getCluster.js +58 -0
- package/redshift/getCluster.js.map +1 -1
- package/redshift/snapshotCopyGrant.d.ts +11 -0
- package/redshift/snapshotCopyGrant.js +11 -0
- package/redshift/snapshotCopyGrant.js.map +1 -1
- package/route53/profilesAssociation.d.ts +16 -0
- package/route53/profilesAssociation.js +16 -0
- package/route53/profilesAssociation.js.map +1 -1
- package/route53/profilesResourceAssociation.d.ts +19 -0
- package/route53/profilesResourceAssociation.js +19 -0
- package/route53/profilesResourceAssociation.js.map +1 -1
- package/s3control/multiRegionAccessPointPolicy.d.ts +39 -0
- package/s3control/multiRegionAccessPointPolicy.js +39 -0
- package/s3control/multiRegionAccessPointPolicy.js.map +1 -1
- package/s3tables/table.d.ts +30 -0
- package/s3tables/table.js +4 -0
- package/s3tables/table.js.map +1 -1
- package/s3tables/tableBucket.d.ts +30 -0
- package/s3tables/tableBucket.js +4 -0
- package/s3tables/tableBucket.js.map +1 -1
- package/sagemaker/endpointConfiguration.d.ts +40 -28
- package/sagemaker/endpointConfiguration.js +2 -0
- package/sagemaker/endpointConfiguration.js.map +1 -1
- package/ssmincidents/getResponsePlan.d.ts +14 -0
- package/ssmincidents/getResponsePlan.js +14 -0
- package/ssmincidents/getResponsePlan.js.map +1 -1
- package/ssoadmin/accountAssignment.d.ts +2 -2
- package/ssoadmin/accountAssignment.js +2 -2
- package/transfer/profile.d.ts +11 -0
- package/transfer/profile.js +11 -0
- package/transfer/profile.js.map +1 -1
- package/transfer/server.d.ts +3 -0
- package/transfer/server.js.map +1 -1
- package/transfer/sshKey.d.ts +3 -3
- package/transfer/sshKey.js +3 -3
- package/types/input.d.ts +462 -140
- package/types/input.js.map +1 -1
- package/types/output.d.ts +779 -95
- package/types/output.js.map +1 -1
- package/wafv2/ruleGroup.d.ts +223 -0
- package/wafv2/ruleGroup.js +223 -0
- package/wafv2/ruleGroup.js.map +1 -1
- package/workspacesweb/sessionLoggerAssociation.d.ts +47 -0
- package/workspacesweb/sessionLoggerAssociation.js +47 -0
- package/workspacesweb/sessionLoggerAssociation.js.map +1 -1
- package/workspacesweb/trustStoreAssociation.d.ts +17 -0
- package/workspacesweb/trustStoreAssociation.js +17 -0
- package/workspacesweb/trustStoreAssociation.js.map +1 -1
package/acm/certificate.d.ts
CHANGED
|
@@ -65,8 +65,8 @@ import * as outputs from "../types/output";
|
|
|
65
65
|
* import * as aws from "@pulumi/aws";
|
|
66
66
|
* import * as tls from "@pulumi/tls";
|
|
67
67
|
*
|
|
68
|
-
* const example = new tls.
|
|
69
|
-
* const exampleSelfSignedCert = new tls.
|
|
68
|
+
* const example = new tls.PrivateKey("example", {algorithm: "RSA"});
|
|
69
|
+
* const exampleSelfSignedCert = new tls.SelfSignedCert("example", {
|
|
70
70
|
* keyAlgorithm: "RSA",
|
|
71
71
|
* privateKeyPem: example.privateKeyPem,
|
|
72
72
|
* subject: [{
|
package/acm/certificate.js
CHANGED
|
@@ -69,8 +69,8 @@ const utilities = require("../utilities");
|
|
|
69
69
|
* import * as aws from "@pulumi/aws";
|
|
70
70
|
* import * as tls from "@pulumi/tls";
|
|
71
71
|
*
|
|
72
|
-
* const example = new tls.
|
|
73
|
-
* const exampleSelfSignedCert = new tls.
|
|
72
|
+
* const example = new tls.PrivateKey("example", {algorithm: "RSA"});
|
|
73
|
+
* const exampleSelfSignedCert = new tls.SelfSignedCert("example", {
|
|
74
74
|
* keyAlgorithm: "RSA",
|
|
75
75
|
* privateKeyPem: example.privateKeyPem,
|
|
76
76
|
* subject: [{
|
package/acmpca/certificate.d.ts
CHANGED
|
@@ -28,8 +28,8 @@ import * as outputs from "../types/output";
|
|
|
28
28
|
* },
|
|
29
29
|
* permanentDeletionTimeInDays: 7,
|
|
30
30
|
* });
|
|
31
|
-
* const key = new tls.
|
|
32
|
-
* const csr = new tls.
|
|
31
|
+
* const key = new tls.PrivateKey("key", {algorithm: "RSA"});
|
|
32
|
+
* const csr = new tls.CertRequest("csr", {
|
|
33
33
|
* privateKeyPem: key.privateKeyPem,
|
|
34
34
|
* subject: [{
|
|
35
35
|
* commonName: "example",
|
package/acmpca/certificate.js
CHANGED
|
@@ -32,8 +32,8 @@ const utilities = require("../utilities");
|
|
|
32
32
|
* },
|
|
33
33
|
* permanentDeletionTimeInDays: 7,
|
|
34
34
|
* });
|
|
35
|
-
* const key = new tls.
|
|
36
|
-
* const csr = new tls.
|
|
35
|
+
* const key = new tls.PrivateKey("key", {algorithm: "RSA"});
|
|
36
|
+
* const csr = new tls.CertRequest("csr", {
|
|
37
37
|
* privateKeyPem: key.privateKeyPem,
|
|
38
38
|
* subject: [{
|
|
39
39
|
* commonName: "example",
|
package/apigateway/account.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ import * as outputs from "../types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Provides a settings of an API Gateway Account. Settings is applied region-wide per `provider` block.
|
|
6
6
|
*
|
|
7
|
-
* > **Note:** By default, destroying this resource will keep your account settings intact. Set `resetOnDelete` to `true` to reset the account setttings to default. In a future major version of the provider, destroying the resource will reset account settings.
|
|
8
|
-
*
|
|
9
7
|
* ## Example Usage
|
|
10
8
|
*
|
|
11
9
|
* ```typescript
|
package/apigateway/account.js
CHANGED
|
@@ -8,8 +8,6 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Provides a settings of an API Gateway Account. Settings is applied region-wide per `provider` block.
|
|
10
10
|
*
|
|
11
|
-
* > **Note:** By default, destroying this resource will keep your account settings intact. Set `resetOnDelete` to `true` to reset the account setttings to default. In a future major version of the provider, destroying the resource will reset account settings.
|
|
12
|
-
*
|
|
13
11
|
* ## Example Usage
|
|
14
12
|
*
|
|
15
13
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../apigateway/account.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../apigateway/account.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;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,GAAG,KAAK,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EG,gBAAgB;AACO,oBAAY,GAAG,gCAAgC,CAAC"}
|
package/appsync/graphQLApi.d.ts
CHANGED
|
@@ -150,6 +150,51 @@ import * as outputs from "../types/output";
|
|
|
150
150
|
*
|
|
151
151
|
* ### Associate Web ACL (v2)
|
|
152
152
|
*
|
|
153
|
+
* ```typescript
|
|
154
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
155
|
+
* import * as aws from "@pulumi/aws";
|
|
156
|
+
*
|
|
157
|
+
* const example = new aws.appsync.GraphQLApi("example", {
|
|
158
|
+
* authenticationType: "API_KEY",
|
|
159
|
+
* name: "example",
|
|
160
|
+
* });
|
|
161
|
+
* const exampleWebAcl = new aws.wafv2.WebAcl("example", {
|
|
162
|
+
* name: "managed-rule-example",
|
|
163
|
+
* description: "Example of a managed rule.",
|
|
164
|
+
* scope: "REGIONAL",
|
|
165
|
+
* defaultAction: {
|
|
166
|
+
* allow: {},
|
|
167
|
+
* },
|
|
168
|
+
* rules: [{
|
|
169
|
+
* name: "rule-1",
|
|
170
|
+
* priority: 1,
|
|
171
|
+
* overrideAction: {
|
|
172
|
+
* block: [{}],
|
|
173
|
+
* },
|
|
174
|
+
* statement: {
|
|
175
|
+
* managedRuleGroupStatement: {
|
|
176
|
+
* name: "AWSManagedRulesCommonRuleSet",
|
|
177
|
+
* vendorName: "AWS",
|
|
178
|
+
* },
|
|
179
|
+
* },
|
|
180
|
+
* visibilityConfig: {
|
|
181
|
+
* cloudwatchMetricsEnabled: false,
|
|
182
|
+
* metricName: "friendly-rule-metric-name",
|
|
183
|
+
* sampledRequestsEnabled: false,
|
|
184
|
+
* },
|
|
185
|
+
* }],
|
|
186
|
+
* visibilityConfig: {
|
|
187
|
+
* cloudwatchMetricsEnabled: false,
|
|
188
|
+
* metricName: "friendly-metric-name",
|
|
189
|
+
* sampledRequestsEnabled: false,
|
|
190
|
+
* },
|
|
191
|
+
* });
|
|
192
|
+
* const exampleWebAclAssociation = new aws.wafv2.WebAclAssociation("example", {
|
|
193
|
+
* resourceArn: example.arn,
|
|
194
|
+
* webAclArn: exampleWebAcl.arn,
|
|
195
|
+
* });
|
|
196
|
+
* ```
|
|
197
|
+
*
|
|
153
198
|
* ### GraphQL run complexity, query depth, and introspection
|
|
154
199
|
*
|
|
155
200
|
* ```typescript
|
package/appsync/graphQLApi.js
CHANGED
|
@@ -154,6 +154,51 @@ const utilities = require("../utilities");
|
|
|
154
154
|
*
|
|
155
155
|
* ### Associate Web ACL (v2)
|
|
156
156
|
*
|
|
157
|
+
* ```typescript
|
|
158
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
159
|
+
* import * as aws from "@pulumi/aws";
|
|
160
|
+
*
|
|
161
|
+
* const example = new aws.appsync.GraphQLApi("example", {
|
|
162
|
+
* authenticationType: "API_KEY",
|
|
163
|
+
* name: "example",
|
|
164
|
+
* });
|
|
165
|
+
* const exampleWebAcl = new aws.wafv2.WebAcl("example", {
|
|
166
|
+
* name: "managed-rule-example",
|
|
167
|
+
* description: "Example of a managed rule.",
|
|
168
|
+
* scope: "REGIONAL",
|
|
169
|
+
* defaultAction: {
|
|
170
|
+
* allow: {},
|
|
171
|
+
* },
|
|
172
|
+
* rules: [{
|
|
173
|
+
* name: "rule-1",
|
|
174
|
+
* priority: 1,
|
|
175
|
+
* overrideAction: {
|
|
176
|
+
* block: [{}],
|
|
177
|
+
* },
|
|
178
|
+
* statement: {
|
|
179
|
+
* managedRuleGroupStatement: {
|
|
180
|
+
* name: "AWSManagedRulesCommonRuleSet",
|
|
181
|
+
* vendorName: "AWS",
|
|
182
|
+
* },
|
|
183
|
+
* },
|
|
184
|
+
* visibilityConfig: {
|
|
185
|
+
* cloudwatchMetricsEnabled: false,
|
|
186
|
+
* metricName: "friendly-rule-metric-name",
|
|
187
|
+
* sampledRequestsEnabled: false,
|
|
188
|
+
* },
|
|
189
|
+
* }],
|
|
190
|
+
* visibilityConfig: {
|
|
191
|
+
* cloudwatchMetricsEnabled: false,
|
|
192
|
+
* metricName: "friendly-metric-name",
|
|
193
|
+
* sampledRequestsEnabled: false,
|
|
194
|
+
* },
|
|
195
|
+
* });
|
|
196
|
+
* const exampleWebAclAssociation = new aws.wafv2.WebAclAssociation("example", {
|
|
197
|
+
* resourceArn: example.arn,
|
|
198
|
+
* webAclArn: exampleWebAcl.arn,
|
|
199
|
+
* });
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
157
202
|
* ### GraphQL run complexity, query depth, and introspection
|
|
158
203
|
*
|
|
159
204
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphQLApi.js","sourceRoot":"","sources":["../../appsync/graphQLApi.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"graphQLApi.js","sourceRoot":"","sources":["../../appsync/graphQLApi.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwNG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GA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G,IAAI,EAAE,mBAAmB,CAAC;YAClE,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AApLL,gCAqLC;AAvKG,gBAAgB;AACO,uBAAY,GAAG,mCAAmC,CAAC"}
|
|
@@ -8,6 +8,61 @@ import * as outputs from "../types/output";
|
|
|
8
8
|
*
|
|
9
9
|
* ### Basic Usage
|
|
10
10
|
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as aws from "@pulumi/aws";
|
|
14
|
+
*
|
|
15
|
+
* const current = aws.getCallerIdentity({});
|
|
16
|
+
* const currentGetPartition = aws.getPartition({});
|
|
17
|
+
* const currentGetRegion = aws.getRegion({});
|
|
18
|
+
* const exampleAgentTrust = Promise.all([current, currentGetPartition, currentGetRegion, current]).then(([current, currentGetPartition, currentGetRegion, current1]) => aws.iam.getPolicyDocument({
|
|
19
|
+
* statements: [{
|
|
20
|
+
* actions: ["sts:AssumeRole"],
|
|
21
|
+
* principals: [{
|
|
22
|
+
* identifiers: ["bedrock.amazonaws.com"],
|
|
23
|
+
* type: "Service",
|
|
24
|
+
* }],
|
|
25
|
+
* conditions: [
|
|
26
|
+
* {
|
|
27
|
+
* test: "StringEquals",
|
|
28
|
+
* values: [current.accountId],
|
|
29
|
+
* variable: "aws:SourceAccount",
|
|
30
|
+
* },
|
|
31
|
+
* {
|
|
32
|
+
* test: "ArnLike",
|
|
33
|
+
* values: [`arn:${currentGetPartition.partition}:bedrock:${currentGetRegion.region}:${current1.accountId}:agent/*`],
|
|
34
|
+
* variable: "AWS:SourceArn",
|
|
35
|
+
* },
|
|
36
|
+
* ],
|
|
37
|
+
* }],
|
|
38
|
+
* }));
|
|
39
|
+
* const exampleAgentPermissions = Promise.all([currentGetPartition, currentGetRegion]).then(([currentGetPartition, currentGetRegion]) => aws.iam.getPolicyDocument({
|
|
40
|
+
* statements: [{
|
|
41
|
+
* actions: ["bedrock:InvokeModel"],
|
|
42
|
+
* resources: [`arn:${currentGetPartition.partition}:bedrock:${currentGetRegion.region}::foundation-model/anthropic.claude-v2`],
|
|
43
|
+
* }],
|
|
44
|
+
* }));
|
|
45
|
+
* const example = new aws.iam.Role("example", {
|
|
46
|
+
* assumeRolePolicy: exampleAgentTrust.then(exampleAgentTrust => exampleAgentTrust.json),
|
|
47
|
+
* namePrefix: "AmazonBedrockExecutionRoleForAgents_",
|
|
48
|
+
* });
|
|
49
|
+
* const exampleRolePolicy = new aws.iam.RolePolicy("example", {
|
|
50
|
+
* policy: exampleAgentPermissions.then(exampleAgentPermissions => exampleAgentPermissions.json),
|
|
51
|
+
* role: example.id,
|
|
52
|
+
* });
|
|
53
|
+
* const exampleAgentAgent = new aws.bedrock.AgentAgent("example", {
|
|
54
|
+
* agentName: "my-agent-name",
|
|
55
|
+
* agentResourceRoleArn: example.arn,
|
|
56
|
+
* idleTtl: 500,
|
|
57
|
+
* foundationModel: "anthropic.claude-v2",
|
|
58
|
+
* });
|
|
59
|
+
* const exampleAgentAgentAlias = new aws.bedrock.AgentAgentAlias("example", {
|
|
60
|
+
* agentAliasName: "my-agent-alias",
|
|
61
|
+
* agentId: exampleAgentAgent.agentId,
|
|
62
|
+
* description: "Test Alias",
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
11
66
|
* ## Import
|
|
12
67
|
*
|
|
13
68
|
* Using `pulumi import`, import Agents for Amazon Bedrock Agent Alias using the alias ID and the agent ID separated by `,`. For example:
|
|
@@ -12,6 +12,61 @@ const utilities = require("../utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* ### Basic Usage
|
|
14
14
|
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* const current = aws.getCallerIdentity({});
|
|
20
|
+
* const currentGetPartition = aws.getPartition({});
|
|
21
|
+
* const currentGetRegion = aws.getRegion({});
|
|
22
|
+
* const exampleAgentTrust = Promise.all([current, currentGetPartition, currentGetRegion, current]).then(([current, currentGetPartition, currentGetRegion, current1]) => aws.iam.getPolicyDocument({
|
|
23
|
+
* statements: [{
|
|
24
|
+
* actions: ["sts:AssumeRole"],
|
|
25
|
+
* principals: [{
|
|
26
|
+
* identifiers: ["bedrock.amazonaws.com"],
|
|
27
|
+
* type: "Service",
|
|
28
|
+
* }],
|
|
29
|
+
* conditions: [
|
|
30
|
+
* {
|
|
31
|
+
* test: "StringEquals",
|
|
32
|
+
* values: [current.accountId],
|
|
33
|
+
* variable: "aws:SourceAccount",
|
|
34
|
+
* },
|
|
35
|
+
* {
|
|
36
|
+
* test: "ArnLike",
|
|
37
|
+
* values: [`arn:${currentGetPartition.partition}:bedrock:${currentGetRegion.region}:${current1.accountId}:agent/*`],
|
|
38
|
+
* variable: "AWS:SourceArn",
|
|
39
|
+
* },
|
|
40
|
+
* ],
|
|
41
|
+
* }],
|
|
42
|
+
* }));
|
|
43
|
+
* const exampleAgentPermissions = Promise.all([currentGetPartition, currentGetRegion]).then(([currentGetPartition, currentGetRegion]) => aws.iam.getPolicyDocument({
|
|
44
|
+
* statements: [{
|
|
45
|
+
* actions: ["bedrock:InvokeModel"],
|
|
46
|
+
* resources: [`arn:${currentGetPartition.partition}:bedrock:${currentGetRegion.region}::foundation-model/anthropic.claude-v2`],
|
|
47
|
+
* }],
|
|
48
|
+
* }));
|
|
49
|
+
* const example = new aws.iam.Role("example", {
|
|
50
|
+
* assumeRolePolicy: exampleAgentTrust.then(exampleAgentTrust => exampleAgentTrust.json),
|
|
51
|
+
* namePrefix: "AmazonBedrockExecutionRoleForAgents_",
|
|
52
|
+
* });
|
|
53
|
+
* const exampleRolePolicy = new aws.iam.RolePolicy("example", {
|
|
54
|
+
* policy: exampleAgentPermissions.then(exampleAgentPermissions => exampleAgentPermissions.json),
|
|
55
|
+
* role: example.id,
|
|
56
|
+
* });
|
|
57
|
+
* const exampleAgentAgent = new aws.bedrock.AgentAgent("example", {
|
|
58
|
+
* agentName: "my-agent-name",
|
|
59
|
+
* agentResourceRoleArn: example.arn,
|
|
60
|
+
* idleTtl: 500,
|
|
61
|
+
* foundationModel: "anthropic.claude-v2",
|
|
62
|
+
* });
|
|
63
|
+
* const exampleAgentAgentAlias = new aws.bedrock.AgentAgentAlias("example", {
|
|
64
|
+
* agentAliasName: "my-agent-alias",
|
|
65
|
+
* agentId: exampleAgentAgent.agentId,
|
|
66
|
+
* description: "Test Alias",
|
|
67
|
+
* });
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
15
70
|
* ## Import
|
|
16
71
|
*
|
|
17
72
|
* Using `pulumi import`, import Agents for Amazon Bedrock Agent Alias using the alias ID and the agent ID separated by `,`. For example:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentAgentAlias.js","sourceRoot":"","sources":["../../bedrock/agentAgentAlias.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"agentAgentAlias.js","sourceRoot":"","sources":["../../bedrock/agentAgentAlias.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAkDD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC;YACvD,c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CAAC;YACpC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAhHL,0CAiHC;AAnGG,gBAAgB;AACO,4BAAY,GAAG,6CAA6C,CAAC"}
|
|
@@ -48,7 +48,7 @@ import * as outputs from "../types/output";
|
|
|
48
48
|
* policy: ecrPermissions.then(ecrPermissions => ecrPermissions.json),
|
|
49
49
|
* });
|
|
50
50
|
* const exampleAgentcoreAgentRuntime = new aws.bedrock.AgentcoreAgentRuntime("example", {
|
|
51
|
-
* agentRuntimeName: "
|
|
51
|
+
* agentRuntimeName: "example_agent_runtime",
|
|
52
52
|
* roleArn: example.arn,
|
|
53
53
|
* agentRuntimeArtifact: {
|
|
54
54
|
* containerConfiguration: {
|
|
@@ -68,7 +68,7 @@ import * as outputs from "../types/output";
|
|
|
68
68
|
* import * as aws from "@pulumi/aws";
|
|
69
69
|
*
|
|
70
70
|
* const example = new aws.bedrock.AgentcoreAgentRuntime("example", {
|
|
71
|
-
* agentRuntimeName: "
|
|
71
|
+
* agentRuntimeName: "example_agent_runtime",
|
|
72
72
|
* description: "Agent runtime with JWT authorization",
|
|
73
73
|
* roleArn: exampleAwsIamRole.arn,
|
|
74
74
|
* agentRuntimeArtifact: {
|
|
@@ -52,7 +52,7 @@ const utilities = require("../utilities");
|
|
|
52
52
|
* policy: ecrPermissions.then(ecrPermissions => ecrPermissions.json),
|
|
53
53
|
* });
|
|
54
54
|
* const exampleAgentcoreAgentRuntime = new aws.bedrock.AgentcoreAgentRuntime("example", {
|
|
55
|
-
* agentRuntimeName: "
|
|
55
|
+
* agentRuntimeName: "example_agent_runtime",
|
|
56
56
|
* roleArn: example.arn,
|
|
57
57
|
* agentRuntimeArtifact: {
|
|
58
58
|
* containerConfiguration: {
|
|
@@ -72,7 +72,7 @@ const utilities = require("../utilities");
|
|
|
72
72
|
* import * as aws from "@pulumi/aws";
|
|
73
73
|
*
|
|
74
74
|
* const example = new aws.bedrock.AgentcoreAgentRuntime("example", {
|
|
75
|
-
* agentRuntimeName: "
|
|
75
|
+
* agentRuntimeName: "example_agent_runtime",
|
|
76
76
|
* description: "Agent runtime with JWT authorization",
|
|
77
77
|
* roleArn: exampleAwsIamRole.arn,
|
|
78
78
|
* agentRuntimeArtifact: {
|
|
@@ -21,6 +21,28 @@ import * as outputs from "../types/output";
|
|
|
21
21
|
* });
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
24
|
+
* ### Browser with VPC Configuration
|
|
25
|
+
*
|
|
26
|
+
* ```typescript
|
|
27
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
28
|
+
* import * as aws from "@pulumi/aws";
|
|
29
|
+
*
|
|
30
|
+
* const vpcExample = new aws.bedrock.AgentcoreBrowser("vpc_example", {
|
|
31
|
+
* name: "vpc-browser",
|
|
32
|
+
* description: "Browser with VPC configuration",
|
|
33
|
+
* networkConfiguration: {
|
|
34
|
+
* networkMode: "VPC",
|
|
35
|
+
* vpcConfig: {
|
|
36
|
+
* securityGroups: ["sg-12345678"],
|
|
37
|
+
* subnets: [
|
|
38
|
+
* "subnet-12345678",
|
|
39
|
+
* "subnet-87654321",
|
|
40
|
+
* ],
|
|
41
|
+
* },
|
|
42
|
+
* },
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
24
46
|
* ### Browser with Execution Role and Recording
|
|
25
47
|
*
|
|
26
48
|
* ```typescript
|
|
@@ -25,6 +25,28 @@ const utilities = require("../utilities");
|
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*
|
|
28
|
+
* ### Browser with VPC Configuration
|
|
29
|
+
*
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
+
* import * as aws from "@pulumi/aws";
|
|
33
|
+
*
|
|
34
|
+
* const vpcExample = new aws.bedrock.AgentcoreBrowser("vpc_example", {
|
|
35
|
+
* name: "vpc-browser",
|
|
36
|
+
* description: "Browser with VPC configuration",
|
|
37
|
+
* networkConfiguration: {
|
|
38
|
+
* networkMode: "VPC",
|
|
39
|
+
* vpcConfig: {
|
|
40
|
+
* securityGroups: ["sg-12345678"],
|
|
41
|
+
* subnets: [
|
|
42
|
+
* "subnet-12345678",
|
|
43
|
+
* "subnet-87654321",
|
|
44
|
+
* ],
|
|
45
|
+
* },
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
28
50
|
* ### Browser with Execution Role and Recording
|
|
29
51
|
*
|
|
30
52
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentcoreBrowser.js","sourceRoot":"","sources":["../../bedrock/agentcoreBrowser.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"agentcoreBrowser.js","sourceRoot":"","sources":["../../bedrock/agentcoreBrowser.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,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C3C,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;SAChD;aAAM;YACH,MAAM,IAAI,GAAG,WAA+C,CAAC;YAC7D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAhHL,4CAiHC;AAnGG,gBAAgB;AACO,6BAAY,GAAG,+CAA+C,CAAC"}
|
|
@@ -8,6 +8,120 @@ import * as outputs from "../types/output";
|
|
|
8
8
|
*
|
|
9
9
|
* ### Lambda Target with Gateway IAM Role
|
|
10
10
|
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as aws from "@pulumi/aws";
|
|
14
|
+
*
|
|
15
|
+
* const gatewayAssume = aws.iam.getPolicyDocument({
|
|
16
|
+
* statements: [{
|
|
17
|
+
* effect: "Allow",
|
|
18
|
+
* actions: ["sts:AssumeRole"],
|
|
19
|
+
* principals: [{
|
|
20
|
+
* type: "Service",
|
|
21
|
+
* identifiers: ["bedrock-agentcore.amazonaws.com"],
|
|
22
|
+
* }],
|
|
23
|
+
* }],
|
|
24
|
+
* });
|
|
25
|
+
* const gatewayRole = new aws.iam.Role("gateway_role", {
|
|
26
|
+
* name: "bedrock-gateway-role",
|
|
27
|
+
* assumeRolePolicy: gatewayAssume.then(gatewayAssume => gatewayAssume.json),
|
|
28
|
+
* });
|
|
29
|
+
* const lambdaAssume = aws.iam.getPolicyDocument({
|
|
30
|
+
* statements: [{
|
|
31
|
+
* effect: "Allow",
|
|
32
|
+
* actions: ["sts:AssumeRole"],
|
|
33
|
+
* principals: [{
|
|
34
|
+
* type: "Service",
|
|
35
|
+
* identifiers: ["lambda.amazonaws.com"],
|
|
36
|
+
* }],
|
|
37
|
+
* }],
|
|
38
|
+
* });
|
|
39
|
+
* const lambdaRole = new aws.iam.Role("lambda_role", {
|
|
40
|
+
* name: "example-lambda-role",
|
|
41
|
+
* assumeRolePolicy: lambdaAssume.then(lambdaAssume => lambdaAssume.json),
|
|
42
|
+
* });
|
|
43
|
+
* const example = new aws.lambda.Function("example", {
|
|
44
|
+
* code: new pulumi.asset.FileArchive("example.zip"),
|
|
45
|
+
* name: "example-function",
|
|
46
|
+
* role: lambdaRole.arn,
|
|
47
|
+
* handler: "index.handler",
|
|
48
|
+
* runtime: aws.lambda.Runtime.NodeJS20dX,
|
|
49
|
+
* });
|
|
50
|
+
* const exampleAgentcoreGateway = new aws.bedrock.AgentcoreGateway("example", {
|
|
51
|
+
* name: "example-gateway",
|
|
52
|
+
* roleArn: gatewayRole.arn,
|
|
53
|
+
* authorizerConfiguration: {
|
|
54
|
+
* customJwtAuthorizer: {
|
|
55
|
+
* discoveryUrl: "https://accounts.google.com/.well-known/openid-configuration",
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* });
|
|
59
|
+
* const exampleAgentcoreGatewayTarget = new aws.bedrock.AgentcoreGatewayTarget("example", {
|
|
60
|
+
* name: "example-target",
|
|
61
|
+
* gatewayIdentifier: exampleAgentcoreGateway.gatewayId,
|
|
62
|
+
* description: "Lambda function target for processing requests",
|
|
63
|
+
* credentialProviderConfiguration: {
|
|
64
|
+
* gatewayIamRole: {},
|
|
65
|
+
* },
|
|
66
|
+
* targetConfiguration: {
|
|
67
|
+
* mcp: {
|
|
68
|
+
* lambda: {
|
|
69
|
+
* lambdaArn: example.arn,
|
|
70
|
+
* toolSchema: {
|
|
71
|
+
* inlinePayloads: [{
|
|
72
|
+
* name: "process_request",
|
|
73
|
+
* description: "Process incoming requests",
|
|
74
|
+
* inputSchema: {
|
|
75
|
+
* type: "object",
|
|
76
|
+
* description: "Request processing schema",
|
|
77
|
+
* properties: [
|
|
78
|
+
* {
|
|
79
|
+
* name: "message",
|
|
80
|
+
* type: "string",
|
|
81
|
+
* description: "Message to process",
|
|
82
|
+
* required: true,
|
|
83
|
+
* },
|
|
84
|
+
* {
|
|
85
|
+
* name: "options",
|
|
86
|
+
* type: "object",
|
|
87
|
+
* properties: [
|
|
88
|
+
* {
|
|
89
|
+
* name: "priority",
|
|
90
|
+
* type: "string",
|
|
91
|
+
* },
|
|
92
|
+
* {
|
|
93
|
+
* name: "tags",
|
|
94
|
+
* type: "array",
|
|
95
|
+
* items: [{
|
|
96
|
+
* type: "string",
|
|
97
|
+
* }],
|
|
98
|
+
* },
|
|
99
|
+
* ],
|
|
100
|
+
* },
|
|
101
|
+
* ],
|
|
102
|
+
* },
|
|
103
|
+
* outputSchema: {
|
|
104
|
+
* type: "object",
|
|
105
|
+
* properties: [
|
|
106
|
+
* {
|
|
107
|
+
* name: "status",
|
|
108
|
+
* type: "string",
|
|
109
|
+
* required: true,
|
|
110
|
+
* },
|
|
111
|
+
* {
|
|
112
|
+
* name: "result",
|
|
113
|
+
* type: "string",
|
|
114
|
+
* },
|
|
115
|
+
* ],
|
|
116
|
+
* },
|
|
117
|
+
* }],
|
|
118
|
+
* },
|
|
119
|
+
* },
|
|
120
|
+
* },
|
|
121
|
+
* },
|
|
122
|
+
* });
|
|
123
|
+
* ```
|
|
124
|
+
*
|
|
11
125
|
* ### Target with API Key Authentication
|
|
12
126
|
*
|
|
13
127
|
* ```typescript
|
|
@@ -185,7 +299,7 @@ export declare class AgentcoreGatewayTarget extends pulumi.CustomResource {
|
|
|
185
299
|
*/
|
|
186
300
|
static isInstance(obj: any): obj is AgentcoreGatewayTarget;
|
|
187
301
|
/**
|
|
188
|
-
* Configuration for authenticating requests to the target. See `credentialProviderConfiguration` below.
|
|
302
|
+
* Configuration for authenticating requests to the target. Required when using `lambda`, `openApiSchema` and `smithyModel` in `mcp` block. If using `mcpServer` in `mcp` block with no authorization, it should not be specified. See `credentialProviderConfiguration` below.
|
|
189
303
|
*/
|
|
190
304
|
readonly credentialProviderConfiguration: pulumi.Output<outputs.bedrock.AgentcoreGatewayTargetCredentialProviderConfiguration | undefined>;
|
|
191
305
|
/**
|
|
@@ -229,7 +343,7 @@ export declare class AgentcoreGatewayTarget extends pulumi.CustomResource {
|
|
|
229
343
|
*/
|
|
230
344
|
export interface AgentcoreGatewayTargetState {
|
|
231
345
|
/**
|
|
232
|
-
* Configuration for authenticating requests to the target. See `credentialProviderConfiguration` below.
|
|
346
|
+
* Configuration for authenticating requests to the target. Required when using `lambda`, `openApiSchema` and `smithyModel` in `mcp` block. If using `mcpServer` in `mcp` block with no authorization, it should not be specified. See `credentialProviderConfiguration` below.
|
|
233
347
|
*/
|
|
234
348
|
credentialProviderConfiguration?: pulumi.Input<inputs.bedrock.AgentcoreGatewayTargetCredentialProviderConfiguration>;
|
|
235
349
|
/**
|
|
@@ -265,7 +379,7 @@ export interface AgentcoreGatewayTargetState {
|
|
|
265
379
|
*/
|
|
266
380
|
export interface AgentcoreGatewayTargetArgs {
|
|
267
381
|
/**
|
|
268
|
-
* Configuration for authenticating requests to the target. See `credentialProviderConfiguration` below.
|
|
382
|
+
* Configuration for authenticating requests to the target. Required when using `lambda`, `openApiSchema` and `smithyModel` in `mcp` block. If using `mcpServer` in `mcp` block with no authorization, it should not be specified. See `credentialProviderConfiguration` below.
|
|
269
383
|
*/
|
|
270
384
|
credentialProviderConfiguration?: pulumi.Input<inputs.bedrock.AgentcoreGatewayTargetCredentialProviderConfiguration>;
|
|
271
385
|
/**
|