@pulumi/aws 6.0.0-alpha.5 → 6.0.0-alpha.7
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/apigateway/authorizer.d.ts +55 -0
- package/apigateway/authorizer.js +55 -0
- package/apigateway/authorizer.js.map +1 -1
- package/apigateway/methodSettings.d.ts +72 -0
- package/apigateway/methodSettings.js +72 -0
- package/apigateway/methodSettings.js.map +1 -1
- package/apigateway/stage.d.ts +1 -1
- package/apigateway/stage.js +1 -1
- package/appintegrations/dataIntegration.d.ts +1 -2
- package/appintegrations/dataIntegration.js +0 -4
- package/appintegrations/dataIntegration.js.map +1 -1
- package/appmesh/virtualRouter.d.ts +1 -1
- package/appmesh/virtualRouter.js +1 -1
- package/athena/database.d.ts +1 -1
- package/athena/database.js +1 -1
- package/auditmanager/assessment.d.ts +1 -2
- package/auditmanager/assessment.js +0 -4
- package/auditmanager/assessment.js.map +1 -1
- package/auditmanager/assessmentReport.d.ts +2 -5
- package/auditmanager/assessmentReport.js +1 -7
- package/auditmanager/assessmentReport.js.map +1 -1
- package/auditmanager/control.d.ts +7 -10
- package/auditmanager/control.js +5 -11
- package/auditmanager/control.js.map +1 -1
- package/auditmanager/framework.d.ts +6 -9
- package/auditmanager/framework.js +4 -10
- package/auditmanager/framework.js.map +1 -1
- package/auditmanager/getControl.d.ts +28 -34
- package/auditmanager/getControl.js +28 -34
- package/auditmanager/getControl.js.map +1 -1
- package/autoscaling/policy.d.ts +1 -1
- package/autoscaling/policy.js +1 -1
- package/budgets/getBudget.d.ts +4 -1
- package/budgets/getBudget.js.map +1 -1
- package/chime/sdkvoiceSipMediaApplication.d.ts +1 -2
- package/chime/sdkvoiceSipMediaApplication.js +0 -4
- package/chime/sdkvoiceSipMediaApplication.js.map +1 -1
- package/chime/sdkvoiceSipRule.d.ts +1 -2
- package/chime/sdkvoiceSipRule.js +0 -4
- package/chime/sdkvoiceSipRule.js.map +1 -1
- package/chime/sdkvoiceVoiceProfileDomain.d.ts +1 -2
- package/chime/sdkvoiceVoiceProfileDomain.js +0 -4
- package/chime/sdkvoiceVoiceProfileDomain.js.map +1 -1
- package/cleanrooms/collaboration.d.ts +1 -2
- package/cleanrooms/collaboration.js +0 -4
- package/cleanrooms/collaboration.js.map +1 -1
- package/cloudfront/distribution.d.ts +229 -0
- package/cloudfront/distribution.js +229 -0
- package/cloudfront/distribution.js.map +1 -1
- package/cloudfront/fieldLevelEncryptionProfile.d.ts +0 -1
- package/cloudfront/fieldLevelEncryptionProfile.js +0 -1
- package/cloudfront/fieldLevelEncryptionProfile.js.map +1 -1
- package/cloudfront/keyGroup.d.ts +0 -1
- package/cloudfront/keyGroup.js +0 -1
- package/cloudfront/keyGroup.js.map +1 -1
- package/cloudfront/publicKey.d.ts +0 -1
- package/cloudfront/publicKey.js +0 -1
- package/cloudfront/publicKey.js.map +1 -1
- package/codepipeline/customActionType.d.ts +1 -1
- package/codepipeline/customActionType.js +1 -1
- package/dlm/lifecyclePolicy.d.ts +41 -0
- package/dlm/lifecyclePolicy.js +41 -0
- package/dlm/lifecyclePolicy.js.map +1 -1
- package/ec2/defaultRouteTable.d.ts +1 -1
- package/ec2/defaultRouteTable.js +1 -1
- package/ec2/getNatGateway.d.ts +31 -21
- package/ec2/getNatGateway.js +4 -6
- package/ec2/getNatGateway.js.map +1 -1
- package/ec2/natGateway.d.ts +79 -18
- package/ec2/natGateway.js +31 -0
- package/ec2/natGateway.js.map +1 -1
- package/ec2/routeTable.d.ts +43 -0
- package/ec2/routeTable.js +43 -0
- package/ec2/routeTable.js.map +1 -1
- package/ec2transitgateway/vpcAttachment.d.ts +2 -2
- package/emrcontainers/jobTemplate.d.ts +8 -11
- package/emrcontainers/jobTemplate.js +7 -13
- package/emrcontainers/jobTemplate.js.map +1 -1
- package/finspace/kxCluster.d.ts +1 -1
- package/finspace/kxCluster.js +0 -3
- package/finspace/kxCluster.js.map +1 -1
- package/finspace/kxDatabase.d.ts +2 -6
- package/finspace/kxDatabase.js +1 -8
- package/finspace/kxDatabase.js.map +1 -1
- package/finspace/kxEnvironment.d.ts +2 -6
- package/finspace/kxEnvironment.js +1 -8
- package/finspace/kxEnvironment.js.map +1 -1
- package/finspace/kxUser.d.ts +2 -6
- package/finspace/kxUser.js +1 -8
- package/finspace/kxUser.js.map +1 -1
- package/globalaccelerator/customRoutingAccelerator.d.ts +2 -3
- package/globalaccelerator/customRoutingAccelerator.js +0 -4
- package/globalaccelerator/customRoutingAccelerator.js.map +1 -1
- package/globalaccelerator/customRoutingListener.d.ts +0 -1
- package/globalaccelerator/customRoutingListener.js +0 -1
- package/globalaccelerator/customRoutingListener.js.map +1 -1
- package/glue/dataQualityRuleset.d.ts +2 -8
- package/glue/dataQualityRuleset.js +1 -10
- package/glue/dataQualityRuleset.js.map +1 -1
- package/glue/job.d.ts +39 -6
- package/glue/job.js +18 -0
- package/glue/job.js.map +1 -1
- package/grafana/workspace.d.ts +3 -3
- package/iam/index.d.ts +3 -0
- package/iam/index.js +7 -2
- package/iam/index.js.map +1 -1
- package/iam/securityTokenServicePreferences.d.ts +60 -0
- package/iam/securityTokenServicePreferences.js +64 -0
- package/iam/securityTokenServicePreferences.js.map +1 -0
- package/index.d.ts +1 -2
- package/index.js +2 -4
- package/index.js.map +1 -1
- package/lambda/lambdaMixins.d.ts +5 -9
- package/lambda/lambdaMixins.js.map +1 -1
- package/licensemanager/licenseGrantAccepter.d.ts +9 -0
- package/licensemanager/licenseGrantAccepter.js +9 -0
- package/licensemanager/licenseGrantAccepter.js.map +1 -1
- package/networkfirewall/firewallPolicy.d.ts +32 -0
- package/networkfirewall/firewallPolicy.js +32 -0
- package/networkfirewall/firewallPolicy.js.map +1 -1
- package/opensearch/serverlessAccessPolicy.d.ts +79 -20
- package/opensearch/serverlessAccessPolicy.js +78 -22
- package/opensearch/serverlessAccessPolicy.js.map +1 -1
- package/opensearch/serverlessCollection.d.ts +10 -7
- package/opensearch/serverlessCollection.js +5 -5
- package/opensearch/serverlessCollection.js.map +1 -1
- package/opensearch/serverlessSecurityConfig.d.ts +1 -1
- package/opensearch/serverlessSecurityConfig.js +0 -3
- package/opensearch/serverlessSecurityConfig.js.map +1 -1
- package/opensearch/serverlessSecurityPolicy.d.ts +1 -7
- package/opensearch/serverlessSecurityPolicy.js +0 -9
- package/opensearch/serverlessSecurityPolicy.js.map +1 -1
- package/opensearch/serverlessVpcEndpoint.d.ts +1 -2
- package/opensearch/serverlessVpcEndpoint.js +0 -4
- package/opensearch/serverlessVpcEndpoint.js.map +1 -1
- package/package.json +2 -3
- package/package.json.bak +0 -1
- package/package.json.dev +2 -3
- package/quicksight/theme.d.ts +1 -1
- package/quicksight/theme.js +0 -3
- package/quicksight/theme.js.map +1 -1
- package/quicksight/vpcConnection.d.ts +1 -2
- package/quicksight/vpcConnection.js +0 -4
- package/quicksight/vpcConnection.js.map +1 -1
- package/rds/getClusterSnapshot.d.ts +4 -2
- package/rds/getClusterSnapshot.js.map +1 -1
- package/rds/getInstance.d.ts +12 -6
- package/rds/getInstance.js +1 -0
- package/rds/getInstance.js.map +1 -1
- package/rds/getInstances.d.ts +41 -2
- package/rds/getInstances.js +25 -0
- package/rds/getInstances.js.map +1 -1
- package/rds/getSnapshot.d.ts +13 -0
- package/rds/getSnapshot.js +1 -0
- package/rds/getSnapshot.js.map +1 -1
- package/rds/instance.d.ts +6 -12
- package/rds/instance.js.map +1 -1
- package/resourceexplorer/view.d.ts +2 -3
- package/resourceexplorer/view.js +0 -4
- package/resourceexplorer/view.js.map +1 -1
- package/route53/cidrCollection.d.ts +3 -3
- package/route53/cidrCollection.js +1 -4
- package/route53/cidrCollection.js.map +1 -1
- package/route53/cidrLocation.d.ts +2 -3
- package/route53/cidrLocation.js +1 -5
- package/route53/cidrLocation.js.map +1 -1
- package/sagemaker/index.d.ts +3 -0
- package/sagemaker/index.js +6 -1
- package/sagemaker/index.js.map +1 -1
- package/sagemaker/pipeline.d.ts +195 -0
- package/sagemaker/pipeline.js +108 -0
- package/sagemaker/pipeline.js.map +1 -0
- package/sfn/alias.d.ts +15 -21
- package/sfn/alias.js +14 -23
- package/sfn/alias.js.map +1 -1
- package/sns/topicSubscription.d.ts +2 -2
- package/sns/topicSubscription.js +2 -2
- package/ssm/association.d.ts +3 -3
- package/ssm/parameter.d.ts +4 -4
- package/ssm/parameter.js +1 -1
- package/transfer/getServer.d.ts +1 -0
- package/transfer/getServer.js.map +1 -1
- package/transfer/server.d.ts +41 -0
- package/transfer/server.js +31 -0
- package/transfer/server.js.map +1 -1
- package/types/enums/lambda/index.d.ts +2 -0
- package/types/enums/lambda/index.js +2 -0
- package/types/enums/lambda/index.js.map +1 -1
- package/types/input.d.ts +534 -32
- package/types/output.d.ts +567 -50
- package/vpclattice/getService.d.ts +20 -8
- package/vpclattice/getService.js +8 -2
- package/vpclattice/getService.js.map +1 -1
- package/vpclattice/getServiceNetwork.d.ts +1 -1
- package/wafv2/webAclLoggingConfiguration.d.ts +3 -3
- package/serverless/function.d.ts +0 -79
- package/serverless/function.js +0 -48
- package/serverless/function.js.map +0 -1
- package/serverless/index.d.ts +0 -1
- package/serverless/index.js +0 -21
- package/serverless/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"licenseGrantAccepter.js","sourceRoot":"","sources":["../../licensemanager/licenseGrantAccepter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"licenseGrantAccepter.js","sourceRoot":"","sources":["../../licensemanager/licenseGrantAccepter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IA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,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAxGL,oDAyGC;AA3FG,gBAAgB;AACO,iCAAY,GAAG,8DAA8D,CAAC"}
|
|
@@ -25,6 +25,38 @@ import * as outputs from "../types/output";
|
|
|
25
25
|
* },
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
|
+
* ## Policy with a HOME_NET Override
|
|
29
|
+
*
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
+
* import * as aws from "@pulumi/aws";
|
|
33
|
+
*
|
|
34
|
+
* const example = new aws.networkfirewall.FirewallPolicy("example", {
|
|
35
|
+
* firewallPolicy: {
|
|
36
|
+
* policyVariables: {
|
|
37
|
+
* ruleVariables: [{
|
|
38
|
+
* key: "HOME_NET",
|
|
39
|
+
* ipSet: {
|
|
40
|
+
* definitions: [
|
|
41
|
+
* "10.0.0.0/16",
|
|
42
|
+
* "10.1.0.0/24",
|
|
43
|
+
* ],
|
|
44
|
+
* },
|
|
45
|
+
* }],
|
|
46
|
+
* },
|
|
47
|
+
* statelessDefaultActions: ["aws:pass"],
|
|
48
|
+
* statelessFragmentDefaultActions: ["aws:drop"],
|
|
49
|
+
* statelessRuleGroupReferences: [{
|
|
50
|
+
* priority: 1,
|
|
51
|
+
* resourceArn: aws_networkfirewall_rule_group.example.arn,
|
|
52
|
+
* }],
|
|
53
|
+
* },
|
|
54
|
+
* tags: {
|
|
55
|
+
* Tag1: "Value1",
|
|
56
|
+
* Tag2: "Value2",
|
|
57
|
+
* },
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
28
60
|
*
|
|
29
61
|
* ## Import
|
|
30
62
|
*
|
|
@@ -29,6 +29,38 @@ const utilities = require("../utilities");
|
|
|
29
29
|
* },
|
|
30
30
|
* });
|
|
31
31
|
* ```
|
|
32
|
+
* ## Policy with a HOME_NET Override
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
+
* import * as aws from "@pulumi/aws";
|
|
37
|
+
*
|
|
38
|
+
* const example = new aws.networkfirewall.FirewallPolicy("example", {
|
|
39
|
+
* firewallPolicy: {
|
|
40
|
+
* policyVariables: {
|
|
41
|
+
* ruleVariables: [{
|
|
42
|
+
* key: "HOME_NET",
|
|
43
|
+
* ipSet: {
|
|
44
|
+
* definitions: [
|
|
45
|
+
* "10.0.0.0/16",
|
|
46
|
+
* "10.1.0.0/24",
|
|
47
|
+
* ],
|
|
48
|
+
* },
|
|
49
|
+
* }],
|
|
50
|
+
* },
|
|
51
|
+
* statelessDefaultActions: ["aws:pass"],
|
|
52
|
+
* statelessFragmentDefaultActions: ["aws:drop"],
|
|
53
|
+
* statelessRuleGroupReferences: [{
|
|
54
|
+
* priority: 1,
|
|
55
|
+
* resourceArn: aws_networkfirewall_rule_group.example.arn,
|
|
56
|
+
* }],
|
|
57
|
+
* },
|
|
58
|
+
* tags: {
|
|
59
|
+
* Tag1: "Value1",
|
|
60
|
+
* Tag2: "Value2",
|
|
61
|
+
* },
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
32
64
|
*
|
|
33
65
|
* ## Import
|
|
34
66
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firewallPolicy.js","sourceRoot":"","sources":["../../networkfirewall/firewallPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"firewallPolicy.js","sourceRoot":"","sources":["../../networkfirewall/firewallPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cA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IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAlGL,wCAmGC;AArFG,gBAAgB;AACO,2BAAY,GAAG,mDAAmD,CAAC"}
|
|
@@ -1,35 +1,94 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* Resource for managing an AWS OpenSearch Serverless Access Policy.
|
|
3
|
+
* Resource for managing an AWS OpenSearch Serverless Access Policy. See AWS documentation for [data access policies](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html) and [supported data access policy permissions](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html#serverless-data-supported-permissions).
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
|
-
* ###
|
|
6
|
+
* ### Grant all collection and index permissions
|
|
7
7
|
*
|
|
8
8
|
* ```typescript
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as aws from "@pulumi/aws";
|
|
11
11
|
*
|
|
12
|
-
* const
|
|
13
|
-
* const
|
|
14
|
-
* const test = new aws.opensearch.ServerlessAccessPolicy("test", {
|
|
15
|
-
* name: "example",
|
|
12
|
+
* const current = aws.getCallerIdentity({});
|
|
13
|
+
* const example = new aws.opensearch.ServerlessAccessPolicy("example", {
|
|
16
14
|
* type: "data",
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* "aoss
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
15
|
+
* description: "read and write permissions",
|
|
16
|
+
* policy: current.then(current => JSON.stringify([{
|
|
17
|
+
* Rules: [
|
|
18
|
+
* {
|
|
19
|
+
* ResourceType: "index",
|
|
20
|
+
* Resource: ["index/example-collection/*"],
|
|
21
|
+
* Permission: ["aoss:*"],
|
|
22
|
+
* },
|
|
23
|
+
* {
|
|
24
|
+
* ResourceType: "collection",
|
|
25
|
+
* Resource: ["collection/example-collection"],
|
|
26
|
+
* Permission: ["aoss:*"],
|
|
27
|
+
* },
|
|
28
|
+
* ],
|
|
29
|
+
* Principal: [current.arn],
|
|
30
30
|
* }])),
|
|
31
31
|
* });
|
|
32
32
|
* ```
|
|
33
|
+
* ### Grant read-only collection and index permissions
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as aws from "@pulumi/aws";
|
|
38
|
+
*
|
|
39
|
+
* const current = aws.getCallerIdentity({});
|
|
40
|
+
* const example = new aws.opensearch.ServerlessAccessPolicy("example", {
|
|
41
|
+
* type: "data",
|
|
42
|
+
* description: "read-only permissions",
|
|
43
|
+
* policy: current.then(current => JSON.stringify([{
|
|
44
|
+
* Rules: [
|
|
45
|
+
* {
|
|
46
|
+
* ResourceType: "index",
|
|
47
|
+
* Resource: ["index/example-collection/*"],
|
|
48
|
+
* Permission: [
|
|
49
|
+
* "aoss:DescribeIndex",
|
|
50
|
+
* "aoss:ReadDocument",
|
|
51
|
+
* ],
|
|
52
|
+
* },
|
|
53
|
+
* {
|
|
54
|
+
* ResourceType: "collection",
|
|
55
|
+
* Resource: ["collection/example-collection"],
|
|
56
|
+
* Permission: ["aoss:DescribeCollectionItems"],
|
|
57
|
+
* },
|
|
58
|
+
* ],
|
|
59
|
+
* Principal: [current.arn],
|
|
60
|
+
* }])),
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
* ### Grant SAML identity permissions
|
|
64
|
+
*
|
|
65
|
+
* ```typescript
|
|
66
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
67
|
+
* import * as aws from "@pulumi/aws";
|
|
68
|
+
*
|
|
69
|
+
* const example = new aws.opensearch.ServerlessAccessPolicy("example", {
|
|
70
|
+
* type: "data",
|
|
71
|
+
* description: "saml permissions",
|
|
72
|
+
* policy: JSON.stringify([{
|
|
73
|
+
* Rules: [
|
|
74
|
+
* {
|
|
75
|
+
* ResourceType: "index",
|
|
76
|
+
* Resource: ["index/example-collection/*"],
|
|
77
|
+
* Permission: ["aoss:*"],
|
|
78
|
+
* },
|
|
79
|
+
* {
|
|
80
|
+
* ResourceType: "collection",
|
|
81
|
+
* Resource: ["collection/example-collection"],
|
|
82
|
+
* Permission: ["aoss:*"],
|
|
83
|
+
* },
|
|
84
|
+
* ],
|
|
85
|
+
* Principal: [
|
|
86
|
+
* "saml/123456789012/myprovider/user/Annie",
|
|
87
|
+
* "saml/123456789012/anotherprovider/group/Accounting",
|
|
88
|
+
* ],
|
|
89
|
+
* }]),
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
33
92
|
*
|
|
34
93
|
* ## Import
|
|
35
94
|
*
|
|
@@ -124,7 +183,7 @@ export interface ServerlessAccessPolicyArgs {
|
|
|
124
183
|
/**
|
|
125
184
|
* Name of the policy.
|
|
126
185
|
*/
|
|
127
|
-
name
|
|
186
|
+
name?: pulumi.Input<string>;
|
|
128
187
|
/**
|
|
129
188
|
* JSON policy document to use as the content for the new policy
|
|
130
189
|
*/
|
|
@@ -6,36 +6,95 @@ exports.ServerlessAccessPolicy = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Resource for managing an AWS OpenSearch Serverless Access Policy.
|
|
9
|
+
* Resource for managing an AWS OpenSearch Serverless Access Policy. See AWS documentation for [data access policies](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html) and [supported data access policy permissions](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html#serverless-data-supported-permissions).
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
-
* ###
|
|
12
|
+
* ### Grant all collection and index permissions
|
|
13
13
|
*
|
|
14
14
|
* ```typescript
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as aws from "@pulumi/aws";
|
|
17
17
|
*
|
|
18
|
-
* const
|
|
19
|
-
* const
|
|
20
|
-
* const test = new aws.opensearch.ServerlessAccessPolicy("test", {
|
|
21
|
-
* name: "example",
|
|
18
|
+
* const current = aws.getCallerIdentity({});
|
|
19
|
+
* const example = new aws.opensearch.ServerlessAccessPolicy("example", {
|
|
22
20
|
* type: "data",
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* "aoss
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
21
|
+
* description: "read and write permissions",
|
|
22
|
+
* policy: current.then(current => JSON.stringify([{
|
|
23
|
+
* Rules: [
|
|
24
|
+
* {
|
|
25
|
+
* ResourceType: "index",
|
|
26
|
+
* Resource: ["index/example-collection/*"],
|
|
27
|
+
* Permission: ["aoss:*"],
|
|
28
|
+
* },
|
|
29
|
+
* {
|
|
30
|
+
* ResourceType: "collection",
|
|
31
|
+
* Resource: ["collection/example-collection"],
|
|
32
|
+
* Permission: ["aoss:*"],
|
|
33
|
+
* },
|
|
34
|
+
* ],
|
|
35
|
+
* Principal: [current.arn],
|
|
36
36
|
* }])),
|
|
37
37
|
* });
|
|
38
38
|
* ```
|
|
39
|
+
* ### Grant read-only collection and index permissions
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as aws from "@pulumi/aws";
|
|
44
|
+
*
|
|
45
|
+
* const current = aws.getCallerIdentity({});
|
|
46
|
+
* const example = new aws.opensearch.ServerlessAccessPolicy("example", {
|
|
47
|
+
* type: "data",
|
|
48
|
+
* description: "read-only permissions",
|
|
49
|
+
* policy: current.then(current => JSON.stringify([{
|
|
50
|
+
* Rules: [
|
|
51
|
+
* {
|
|
52
|
+
* ResourceType: "index",
|
|
53
|
+
* Resource: ["index/example-collection/*"],
|
|
54
|
+
* Permission: [
|
|
55
|
+
* "aoss:DescribeIndex",
|
|
56
|
+
* "aoss:ReadDocument",
|
|
57
|
+
* ],
|
|
58
|
+
* },
|
|
59
|
+
* {
|
|
60
|
+
* ResourceType: "collection",
|
|
61
|
+
* Resource: ["collection/example-collection"],
|
|
62
|
+
* Permission: ["aoss:DescribeCollectionItems"],
|
|
63
|
+
* },
|
|
64
|
+
* ],
|
|
65
|
+
* Principal: [current.arn],
|
|
66
|
+
* }])),
|
|
67
|
+
* });
|
|
68
|
+
* ```
|
|
69
|
+
* ### Grant SAML identity permissions
|
|
70
|
+
*
|
|
71
|
+
* ```typescript
|
|
72
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
73
|
+
* import * as aws from "@pulumi/aws";
|
|
74
|
+
*
|
|
75
|
+
* const example = new aws.opensearch.ServerlessAccessPolicy("example", {
|
|
76
|
+
* type: "data",
|
|
77
|
+
* description: "saml permissions",
|
|
78
|
+
* policy: JSON.stringify([{
|
|
79
|
+
* Rules: [
|
|
80
|
+
* {
|
|
81
|
+
* ResourceType: "index",
|
|
82
|
+
* Resource: ["index/example-collection/*"],
|
|
83
|
+
* Permission: ["aoss:*"],
|
|
84
|
+
* },
|
|
85
|
+
* {
|
|
86
|
+
* ResourceType: "collection",
|
|
87
|
+
* Resource: ["collection/example-collection"],
|
|
88
|
+
* Permission: ["aoss:*"],
|
|
89
|
+
* },
|
|
90
|
+
* ],
|
|
91
|
+
* Principal: [
|
|
92
|
+
* "saml/123456789012/myprovider/user/Annie",
|
|
93
|
+
* "saml/123456789012/anotherprovider/group/Accounting",
|
|
94
|
+
* ],
|
|
95
|
+
* }]),
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
39
98
|
*
|
|
40
99
|
* ## Import
|
|
41
100
|
*
|
|
@@ -81,9 +140,6 @@ class ServerlessAccessPolicy extends pulumi.CustomResource {
|
|
|
81
140
|
}
|
|
82
141
|
else {
|
|
83
142
|
const args = argsOrState;
|
|
84
|
-
if ((!args || args.name === undefined) && !opts.urn) {
|
|
85
|
-
throw new Error("Missing required property 'name'");
|
|
86
|
-
}
|
|
87
143
|
if ((!args || args.policy === undefined) && !opts.urn) {
|
|
88
144
|
throw new Error("Missing required property 'policy'");
|
|
89
145
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverlessAccessPolicy.js","sourceRoot":"","sources":["../../opensearch/serverlessAccessPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"serverlessAccessPolicy.js","sourceRoot":"","sources":["../../opensearch/serverlessAccessPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkGG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7E,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,GAA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C,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AArFL,wDAsFC;AAxEG,gBAAgB;AACO,mCAAY,GAAG,8DAA8D,CAAC"}
|
|
@@ -4,6 +4,10 @@ import * as outputs from "../types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Resource for managing an AWS OpenSearch Serverless Collection.
|
|
6
6
|
*
|
|
7
|
+
* > **NOTE:** An `aws.opensearch.ServerlessCollection` cannot be created without having an applicable encryption security policy. Use the `dependsOn` meta-argument to define this dependency.
|
|
8
|
+
*
|
|
9
|
+
* > **NOTE:** An `aws.opensearch.ServerlessCollection` is not accessible without configuring an applicable network security policy. Data cannot be accessed without configuring an applicable data access policy.
|
|
10
|
+
*
|
|
7
11
|
* ## Example Usage
|
|
8
12
|
* ### Basic Usage
|
|
9
13
|
*
|
|
@@ -12,7 +16,6 @@ import * as outputs from "../types/output";
|
|
|
12
16
|
* import * as aws from "@pulumi/aws";
|
|
13
17
|
*
|
|
14
18
|
* const exampleServerlessSecurityPolicy = new aws.opensearch.ServerlessSecurityPolicy("exampleServerlessSecurityPolicy", {
|
|
15
|
-
* name: "example",
|
|
16
19
|
* type: "encryption",
|
|
17
20
|
* policy: JSON.stringify({
|
|
18
21
|
* Rules: [{
|
|
@@ -22,7 +25,7 @@ import * as outputs from "../types/output";
|
|
|
22
25
|
* AWSOwnedKey: true,
|
|
23
26
|
* }),
|
|
24
27
|
* });
|
|
25
|
-
* const exampleServerlessCollection = new aws.opensearch.ServerlessCollection("exampleServerlessCollection", {
|
|
28
|
+
* const exampleServerlessCollection = new aws.opensearch.ServerlessCollection("exampleServerlessCollection", {}, {
|
|
26
29
|
* dependsOn: [exampleServerlessSecurityPolicy],
|
|
27
30
|
* });
|
|
28
31
|
* ```
|
|
@@ -85,7 +88,7 @@ export declare class ServerlessCollection extends pulumi.CustomResource {
|
|
|
85
88
|
}>;
|
|
86
89
|
readonly timeouts: pulumi.Output<outputs.opensearch.ServerlessCollectionTimeouts | undefined>;
|
|
87
90
|
/**
|
|
88
|
-
* Type of collection. One of `SEARCH` or `TIMESERIES`.
|
|
91
|
+
* Type of collection. One of `SEARCH`, `TIMESERIES`, or `VECTORSEARCH`. Defaults to `TIMESERIES`.
|
|
89
92
|
*/
|
|
90
93
|
readonly type: pulumi.Output<string>;
|
|
91
94
|
/**
|
|
@@ -95,7 +98,7 @@ export declare class ServerlessCollection extends pulumi.CustomResource {
|
|
|
95
98
|
* @param args The arguments to use to populate this resource's properties.
|
|
96
99
|
* @param opts A bag of options that control this resource's behavior.
|
|
97
100
|
*/
|
|
98
|
-
constructor(name: string, args
|
|
101
|
+
constructor(name: string, args?: ServerlessCollectionArgs, opts?: pulumi.CustomResourceOptions);
|
|
99
102
|
}
|
|
100
103
|
/**
|
|
101
104
|
* Input properties used for looking up and filtering ServerlessCollection resources.
|
|
@@ -135,7 +138,7 @@ export interface ServerlessCollectionState {
|
|
|
135
138
|
}>;
|
|
136
139
|
timeouts?: pulumi.Input<inputs.opensearch.ServerlessCollectionTimeouts>;
|
|
137
140
|
/**
|
|
138
|
-
* Type of collection. One of `SEARCH` or `TIMESERIES`.
|
|
141
|
+
* Type of collection. One of `SEARCH`, `TIMESERIES`, or `VECTORSEARCH`. Defaults to `TIMESERIES`.
|
|
139
142
|
*/
|
|
140
143
|
type?: pulumi.Input<string>;
|
|
141
144
|
}
|
|
@@ -152,7 +155,7 @@ export interface ServerlessCollectionArgs {
|
|
|
152
155
|
*
|
|
153
156
|
* The following arguments are optional:
|
|
154
157
|
*/
|
|
155
|
-
name
|
|
158
|
+
name?: pulumi.Input<string>;
|
|
156
159
|
/**
|
|
157
160
|
* A map of tags to assign to the collection. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
158
161
|
*/
|
|
@@ -161,7 +164,7 @@ export interface ServerlessCollectionArgs {
|
|
|
161
164
|
}>;
|
|
162
165
|
timeouts?: pulumi.Input<inputs.opensearch.ServerlessCollectionTimeouts>;
|
|
163
166
|
/**
|
|
164
|
-
* Type of collection. One of `SEARCH` or `TIMESERIES`.
|
|
167
|
+
* Type of collection. One of `SEARCH`, `TIMESERIES`, or `VECTORSEARCH`. Defaults to `TIMESERIES`.
|
|
165
168
|
*/
|
|
166
169
|
type?: pulumi.Input<string>;
|
|
167
170
|
}
|
|
@@ -8,6 +8,10 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Resource for managing an AWS OpenSearch Serverless Collection.
|
|
10
10
|
*
|
|
11
|
+
* > **NOTE:** An `aws.opensearch.ServerlessCollection` cannot be created without having an applicable encryption security policy. Use the `dependsOn` meta-argument to define this dependency.
|
|
12
|
+
*
|
|
13
|
+
* > **NOTE:** An `aws.opensearch.ServerlessCollection` is not accessible without configuring an applicable network security policy. Data cannot be accessed without configuring an applicable data access policy.
|
|
14
|
+
*
|
|
11
15
|
* ## Example Usage
|
|
12
16
|
* ### Basic Usage
|
|
13
17
|
*
|
|
@@ -16,7 +20,6 @@ const utilities = require("../utilities");
|
|
|
16
20
|
* import * as aws from "@pulumi/aws";
|
|
17
21
|
*
|
|
18
22
|
* const exampleServerlessSecurityPolicy = new aws.opensearch.ServerlessSecurityPolicy("exampleServerlessSecurityPolicy", {
|
|
19
|
-
* name: "example",
|
|
20
23
|
* type: "encryption",
|
|
21
24
|
* policy: JSON.stringify({
|
|
22
25
|
* Rules: [{
|
|
@@ -26,7 +29,7 @@ const utilities = require("../utilities");
|
|
|
26
29
|
* AWSOwnedKey: true,
|
|
27
30
|
* }),
|
|
28
31
|
* });
|
|
29
|
-
* const exampleServerlessCollection = new aws.opensearch.ServerlessCollection("exampleServerlessCollection", {
|
|
32
|
+
* const exampleServerlessCollection = new aws.opensearch.ServerlessCollection("exampleServerlessCollection", {}, {
|
|
30
33
|
* dependsOn: [exampleServerlessSecurityPolicy],
|
|
31
34
|
* });
|
|
32
35
|
* ```
|
|
@@ -80,9 +83,6 @@ class ServerlessCollection extends pulumi.CustomResource {
|
|
|
80
83
|
}
|
|
81
84
|
else {
|
|
82
85
|
const args = argsOrState;
|
|
83
|
-
if ((!args || args.name === undefined) && !opts.urn) {
|
|
84
|
-
throw new Error("Missing required property 'name'");
|
|
85
|
-
}
|
|
86
86
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
87
87
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
88
88
|
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverlessCollection.js","sourceRoot":"","sources":["../../opensearch/serverlessCollection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"serverlessCollection.js","sourceRoot":"","sources":["../../opensearch/serverlessCollection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoC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,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACxD,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,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AApGL,oDAqGC;AAvFG,gBAAgB;AACO,iCAAY,GAAG,0DAA0D,CAAC"}
|
|
@@ -54,9 +54,6 @@ class ServerlessSecurityConfig extends pulumi.CustomResource {
|
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
56
|
const args = argsOrState;
|
|
57
|
-
if ((!args || args.name === undefined) && !opts.urn) {
|
|
58
|
-
throw new Error("Missing required property 'name'");
|
|
59
|
-
}
|
|
60
57
|
if ((!args || args.type === undefined) && !opts.urn) {
|
|
61
58
|
throw new Error("Missing required property 'type'");
|
|
62
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverlessSecurityConfig.js","sourceRoot":"","sources":["../../opensearch/serverlessSecurityConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/E,CAAC;IAKD;;;OA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;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAuD,CAAC;YACrE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AAlFL,4DAmFC;AArEG,gBAAgB;AACO,qCAAY,GAAG,kEAAkE,CAAC"}
|
|
@@ -12,7 +12,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
12
|
* import * as aws from "@pulumi/aws";
|
|
13
13
|
*
|
|
14
14
|
* const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
|
|
15
|
-
* name: "example",
|
|
16
15
|
* type: "encryption",
|
|
17
16
|
* description: "encryption security policy for example-collection",
|
|
18
17
|
* policy: JSON.stringify({
|
|
@@ -31,7 +30,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
31
30
|
* import * as aws from "@pulumi/aws";
|
|
32
31
|
*
|
|
33
32
|
* const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
|
|
34
|
-
* name: "example",
|
|
35
33
|
* type: "encryption",
|
|
36
34
|
* description: "encryption security policy for collections that begin with \"example\"",
|
|
37
35
|
* policy: JSON.stringify({
|
|
@@ -50,7 +48,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
50
48
|
* import * as aws from "@pulumi/aws";
|
|
51
49
|
*
|
|
52
50
|
* const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
|
|
53
|
-
* name: "example",
|
|
54
51
|
* type: "encryption",
|
|
55
52
|
* description: "encryption security policy using customer KMS key",
|
|
56
53
|
* policy: JSON.stringify({
|
|
@@ -71,7 +68,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
71
68
|
* import * as aws from "@pulumi/aws";
|
|
72
69
|
*
|
|
73
70
|
* const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
|
|
74
|
-
* name: "example",
|
|
75
71
|
* type: "network",
|
|
76
72
|
* description: "Public access",
|
|
77
73
|
* policy: JSON.stringify([{
|
|
@@ -97,7 +93,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
97
93
|
* import * as aws from "@pulumi/aws";
|
|
98
94
|
*
|
|
99
95
|
* const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
|
|
100
|
-
* name: "example",
|
|
101
96
|
* type: "network",
|
|
102
97
|
* description: "VPC access",
|
|
103
98
|
* policy: JSON.stringify([{
|
|
@@ -124,7 +119,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
124
119
|
* import * as aws from "@pulumi/aws";
|
|
125
120
|
*
|
|
126
121
|
* const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
|
|
127
|
-
* name: "example",
|
|
128
122
|
* type: "network",
|
|
129
123
|
* description: "Mixed access for marketing and sales",
|
|
130
124
|
* policy: JSON.stringify([
|
|
@@ -248,7 +242,7 @@ export interface ServerlessSecurityPolicyArgs {
|
|
|
248
242
|
/**
|
|
249
243
|
* Name of the policy.
|
|
250
244
|
*/
|
|
251
|
-
name
|
|
245
|
+
name?: pulumi.Input<string>;
|
|
252
246
|
/**
|
|
253
247
|
* JSON policy document to use as the content for the new policy
|
|
254
248
|
*/
|
|
@@ -18,7 +18,6 @@ const utilities = require("../utilities");
|
|
|
18
18
|
* import * as aws from "@pulumi/aws";
|
|
19
19
|
*
|
|
20
20
|
* const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
|
|
21
|
-
* name: "example",
|
|
22
21
|
* type: "encryption",
|
|
23
22
|
* description: "encryption security policy for example-collection",
|
|
24
23
|
* policy: JSON.stringify({
|
|
@@ -37,7 +36,6 @@ const utilities = require("../utilities");
|
|
|
37
36
|
* import * as aws from "@pulumi/aws";
|
|
38
37
|
*
|
|
39
38
|
* const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
|
|
40
|
-
* name: "example",
|
|
41
39
|
* type: "encryption",
|
|
42
40
|
* description: "encryption security policy for collections that begin with \"example\"",
|
|
43
41
|
* policy: JSON.stringify({
|
|
@@ -56,7 +54,6 @@ const utilities = require("../utilities");
|
|
|
56
54
|
* import * as aws from "@pulumi/aws";
|
|
57
55
|
*
|
|
58
56
|
* const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
|
|
59
|
-
* name: "example",
|
|
60
57
|
* type: "encryption",
|
|
61
58
|
* description: "encryption security policy using customer KMS key",
|
|
62
59
|
* policy: JSON.stringify({
|
|
@@ -77,7 +74,6 @@ const utilities = require("../utilities");
|
|
|
77
74
|
* import * as aws from "@pulumi/aws";
|
|
78
75
|
*
|
|
79
76
|
* const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
|
|
80
|
-
* name: "example",
|
|
81
77
|
* type: "network",
|
|
82
78
|
* description: "Public access",
|
|
83
79
|
* policy: JSON.stringify([{
|
|
@@ -103,7 +99,6 @@ const utilities = require("../utilities");
|
|
|
103
99
|
* import * as aws from "@pulumi/aws";
|
|
104
100
|
*
|
|
105
101
|
* const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
|
|
106
|
-
* name: "example",
|
|
107
102
|
* type: "network",
|
|
108
103
|
* description: "VPC access",
|
|
109
104
|
* policy: JSON.stringify([{
|
|
@@ -130,7 +125,6 @@ const utilities = require("../utilities");
|
|
|
130
125
|
* import * as aws from "@pulumi/aws";
|
|
131
126
|
*
|
|
132
127
|
* const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
|
|
133
|
-
* name: "example",
|
|
134
128
|
* type: "network",
|
|
135
129
|
* description: "Mixed access for marketing and sales",
|
|
136
130
|
* policy: JSON.stringify([
|
|
@@ -205,9 +199,6 @@ class ServerlessSecurityPolicy extends pulumi.CustomResource {
|
|
|
205
199
|
}
|
|
206
200
|
else {
|
|
207
201
|
const args = argsOrState;
|
|
208
|
-
if ((!args || args.name === undefined) && !opts.urn) {
|
|
209
|
-
throw new Error("Missing required property 'name'");
|
|
210
|
-
}
|
|
211
202
|
if ((!args || args.policy === undefined) && !opts.urn) {
|
|
212
203
|
throw new Error("Missing required property 'policy'");
|
|
213
204
|
}
|