@pulumi/aws 5.37.0 → 5.38.0-alpha.1682358431
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.
|
@@ -4,76 +4,6 @@ import * as outputs from "../types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Provides an AWS Cognito Identity Pool Roles Attachment.
|
|
6
6
|
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as aws from "@pulumi/aws";
|
|
12
|
-
*
|
|
13
|
-
* const mainIdentityPool = new aws.cognito.IdentityPool("mainIdentityPool", {
|
|
14
|
-
* identityPoolName: "identity pool",
|
|
15
|
-
* allowUnauthenticatedIdentities: false,
|
|
16
|
-
* supportedLoginProviders: {
|
|
17
|
-
* "graph.facebook.com": "7346241598935555",
|
|
18
|
-
* },
|
|
19
|
-
* });
|
|
20
|
-
* const authenticatedPolicyDocument = aws.iam.getPolicyDocumentOutput({
|
|
21
|
-
* statements: [{
|
|
22
|
-
* effect: "Allow",
|
|
23
|
-
* principals: [{
|
|
24
|
-
* type: "Federated",
|
|
25
|
-
* identifiers: ["cognito-identity.amazonaws.com"],
|
|
26
|
-
* }],
|
|
27
|
-
* actions: ["sts:AssumeRoleWithWebIdentity"],
|
|
28
|
-
* conditions: [
|
|
29
|
-
* {
|
|
30
|
-
* test: "StringEquals",
|
|
31
|
-
* variable: "cognito-identity.amazonaws.com:aud",
|
|
32
|
-
* values: [mainIdentityPool.id],
|
|
33
|
-
* },
|
|
34
|
-
* {
|
|
35
|
-
* test: "ForAnyValue:StringLike",
|
|
36
|
-
* variable: "cognito-identity.amazonaws.com:amr",
|
|
37
|
-
* values: ["authenticated"],
|
|
38
|
-
* },
|
|
39
|
-
* ],
|
|
40
|
-
* }],
|
|
41
|
-
* });
|
|
42
|
-
* const authenticatedRole = new aws.iam.Role("authenticatedRole", {assumeRolePolicy: authenticatedPolicyDocument.apply(authenticatedPolicyDocument => authenticatedPolicyDocument.json)});
|
|
43
|
-
* const authenticatedRolePolicyPolicyDocument = aws.iam.getPolicyDocument({
|
|
44
|
-
* statements: [{
|
|
45
|
-
* effect: "Allow",
|
|
46
|
-
* actions: [
|
|
47
|
-
* "mobileanalytics:PutEvents",
|
|
48
|
-
* "cognito-sync:*",
|
|
49
|
-
* "cognito-identity:*",
|
|
50
|
-
* ],
|
|
51
|
-
* resources: ["*"],
|
|
52
|
-
* }],
|
|
53
|
-
* });
|
|
54
|
-
* const authenticatedRolePolicy = new aws.iam.RolePolicy("authenticatedRolePolicy", {
|
|
55
|
-
* role: authenticatedRole.id,
|
|
56
|
-
* policy: authenticatedRolePolicyPolicyDocument.then(authenticatedRolePolicyPolicyDocument => authenticatedRolePolicyPolicyDocument.json),
|
|
57
|
-
* });
|
|
58
|
-
* const mainIdentityPoolRoleAttachment = new aws.cognito.IdentityPoolRoleAttachment("mainIdentityPoolRoleAttachment", {
|
|
59
|
-
* identityPoolId: mainIdentityPool.id,
|
|
60
|
-
* roleMappings: [{
|
|
61
|
-
* identityProvider: "graph.facebook.com",
|
|
62
|
-
* ambiguousRoleResolution: "AuthenticatedRole",
|
|
63
|
-
* type: "Rules",
|
|
64
|
-
* mappingRules: [{
|
|
65
|
-
* claim: "isAdmin",
|
|
66
|
-
* matchType: "Equals",
|
|
67
|
-
* roleArn: authenticatedRole.arn,
|
|
68
|
-
* value: "paid",
|
|
69
|
-
* }],
|
|
70
|
-
* }],
|
|
71
|
-
* roles: {
|
|
72
|
-
* authenticated: authenticatedRole.arn,
|
|
73
|
-
* },
|
|
74
|
-
* });
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
7
|
* ## Import
|
|
78
8
|
*
|
|
79
9
|
* Cognito Identity Pool Roles Attachment can be imported using the Identity Pool ID, e.g.,
|
|
@@ -8,76 +8,6 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Provides an AWS Cognito Identity Pool Roles Attachment.
|
|
10
10
|
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as aws from "@pulumi/aws";
|
|
16
|
-
*
|
|
17
|
-
* const mainIdentityPool = new aws.cognito.IdentityPool("mainIdentityPool", {
|
|
18
|
-
* identityPoolName: "identity pool",
|
|
19
|
-
* allowUnauthenticatedIdentities: false,
|
|
20
|
-
* supportedLoginProviders: {
|
|
21
|
-
* "graph.facebook.com": "7346241598935555",
|
|
22
|
-
* },
|
|
23
|
-
* });
|
|
24
|
-
* const authenticatedPolicyDocument = aws.iam.getPolicyDocumentOutput({
|
|
25
|
-
* statements: [{
|
|
26
|
-
* effect: "Allow",
|
|
27
|
-
* principals: [{
|
|
28
|
-
* type: "Federated",
|
|
29
|
-
* identifiers: ["cognito-identity.amazonaws.com"],
|
|
30
|
-
* }],
|
|
31
|
-
* actions: ["sts:AssumeRoleWithWebIdentity"],
|
|
32
|
-
* conditions: [
|
|
33
|
-
* {
|
|
34
|
-
* test: "StringEquals",
|
|
35
|
-
* variable: "cognito-identity.amazonaws.com:aud",
|
|
36
|
-
* values: [mainIdentityPool.id],
|
|
37
|
-
* },
|
|
38
|
-
* {
|
|
39
|
-
* test: "ForAnyValue:StringLike",
|
|
40
|
-
* variable: "cognito-identity.amazonaws.com:amr",
|
|
41
|
-
* values: ["authenticated"],
|
|
42
|
-
* },
|
|
43
|
-
* ],
|
|
44
|
-
* }],
|
|
45
|
-
* });
|
|
46
|
-
* const authenticatedRole = new aws.iam.Role("authenticatedRole", {assumeRolePolicy: authenticatedPolicyDocument.apply(authenticatedPolicyDocument => authenticatedPolicyDocument.json)});
|
|
47
|
-
* const authenticatedRolePolicyPolicyDocument = aws.iam.getPolicyDocument({
|
|
48
|
-
* statements: [{
|
|
49
|
-
* effect: "Allow",
|
|
50
|
-
* actions: [
|
|
51
|
-
* "mobileanalytics:PutEvents",
|
|
52
|
-
* "cognito-sync:*",
|
|
53
|
-
* "cognito-identity:*",
|
|
54
|
-
* ],
|
|
55
|
-
* resources: ["*"],
|
|
56
|
-
* }],
|
|
57
|
-
* });
|
|
58
|
-
* const authenticatedRolePolicy = new aws.iam.RolePolicy("authenticatedRolePolicy", {
|
|
59
|
-
* role: authenticatedRole.id,
|
|
60
|
-
* policy: authenticatedRolePolicyPolicyDocument.then(authenticatedRolePolicyPolicyDocument => authenticatedRolePolicyPolicyDocument.json),
|
|
61
|
-
* });
|
|
62
|
-
* const mainIdentityPoolRoleAttachment = new aws.cognito.IdentityPoolRoleAttachment("mainIdentityPoolRoleAttachment", {
|
|
63
|
-
* identityPoolId: mainIdentityPool.id,
|
|
64
|
-
* roleMappings: [{
|
|
65
|
-
* identityProvider: "graph.facebook.com",
|
|
66
|
-
* ambiguousRoleResolution: "AuthenticatedRole",
|
|
67
|
-
* type: "Rules",
|
|
68
|
-
* mappingRules: [{
|
|
69
|
-
* claim: "isAdmin",
|
|
70
|
-
* matchType: "Equals",
|
|
71
|
-
* roleArn: authenticatedRole.arn,
|
|
72
|
-
* value: "paid",
|
|
73
|
-
* }],
|
|
74
|
-
* }],
|
|
75
|
-
* roles: {
|
|
76
|
-
* authenticated: authenticatedRole.arn,
|
|
77
|
-
* },
|
|
78
|
-
* });
|
|
79
|
-
* ```
|
|
80
|
-
*
|
|
81
11
|
* ## Import
|
|
82
12
|
*
|
|
83
13
|
* Cognito Identity Pool Roles Attachment can be imported using the Identity Pool ID, e.g.,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identityPoolRoleAttachment.js","sourceRoot":"","sources":["../../cognito/identityPoolRoleAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"identityPoolRoleAttachment.js","sourceRoot":"","sources":["../../cognito/identityPoolRoleAttachment.ts"],"names":[],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,CAAC,GAAG,EAAE;gBAC3D,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;aACjE;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,0BAA0B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;;AAvEL,gEAwEC;AA1DG,gBAAgB;AACO,uCAAY,GAAG,mEAAmE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/aws",
|
|
3
|
-
"version": "v5.
|
|
3
|
+
"version": "v5.38.0-alpha.1682358431+5a053a78",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource aws v5.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource aws v5.38.0-alpha.1682358431+5a053a78"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0",
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/aws",
|
|
3
|
-
"version": "v5.
|
|
3
|
+
"version": "v5.38.0-alpha.1682358431+5a053a78",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource aws v5.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource aws v5.38.0-alpha.1682358431+5a053a78"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0",
|